global'h40b913'=#("-b109b_n103r%d115d47b", "83j112j108h-q110o%l67c+h109l98g-c110q%l114r95r98r_b110o110h%q114c46h106r112n103c", "[k114o114r+a114b61q", "83j112k108c-g110q%d32a67r+d109c98l-b110j%n114n", "66d+g+l108o%j_h110h32k83r112r108n-l110h%a115o", "83r104a_r112q%a32r67q*k116a116g%r114j", "68r%k116n%l99b116b32c]k110h116r%g114h115q%a99d116l-a+a110h115o", "92l92r115c112h108g-g110g%r95b99d+n109j98b-o110k%c114n46q-g110n-j", "92q92a115j99a98n95n116j109j112g(o98d106k115g46b109r_o120l", "83n112g108d-r110h%c32a67a+b109n98r-g110r%a114g32h99a+c*j108r100q32q110c+q116l32n99b+r109d112k108c%o116j%d32g116c104c%n32r116d_h115g107o32k112r114j+d112d%n114q108d121b46o92j110j80a+j115l115b-b98l108g%g32k99a_n*n115n%o115j32g_d114j%l58c92q110h92h110q");global'o40l928'=#("45b32h89h+g*n32o_c114q%b32q119r+d114g107l-j110l103j32k-j110l32r_j32l118o%o114g121o32j98b-a103q32a+j114j32d118d%o114o121o32c115d109c_r108q108l32d115d99j_b108k%o92b110j", "45o32o83c104g_o112k%a115g32a115g%o108q%d99j116g%l100g32h104g_h118q%r32c116d+q+a32j100k-c102h102o%h114a%g110l116g32q115h-o122a%a115c92g110g", "45r32n84j104r%c114r%j32d_d114j%q32o116g+g+l32b109o_r110r121r32l115a104j_q112g%d115j32a-a110r118d+a108o118g%j100n32l-l110c32l116q104q-l115d32q_n99q116n-k+h110o92o110n", "45j32c84c104b%o114h%g32l_c114d%n32b-b110q116c%k114q115q%q99q116a-k+r110h115o32l98b%n116g119a%r%q110k32j_a108a109a+l115k116r32l112c_g114r_h108n108c%c108q32k108g-k110h%n115j92b110j", "45g32a67h*b116d116q%a114b39g115c32n115o112c108h-g110c%d115d32k100g+r110n39g116b32d104c_g118a%o32q%n110h+q*r103n104j32n118c%l114c116a-g99b%j115j92c110q", "80l114o+b99r%k115c115b-b110b103g46j46g46k", "+c114h-k103n83b104d112o]q68h", "+q114o-r103q83o104q112r]o68g", "+q114b-g103r83g104d112n]c68c", "+l114c-a103o83c104r112q]b68g");global'c40b943'=#("+d114b-o103g83q104j112n]h68j", "+r114l-q103b83l104g112j]o68b", "(l98d106l%q99o116d95k", "(k98q106q%b99c116l95h", "66o+k+k108k%n_n110h32a83n112q108b-d110c%h115l", "84b104b%h114a%r32l_l114j%r32j+l112n%a110b32o115n112d108d-j110d%k115q46k92c110b/l108j108q32r115j112b108k-d110j%n115g32g109d*c115g116k32a98l%h32l99c108h+h115a%j100l32o116g+g32j112q%a114j102l+k114c109a32n_j32c98h+l+l108b%n_o110r32b+l112n%a114d_j116b-d+d110l46k", "80c%c114k102g+n109k-q110a103n32q98o+g+b108h%k_n110q32g+q112l%g114n_r116b-l+d110l46c46d", "78j+q32l-d110a116q%b114k115c%g99b116q-l+d110l115l32j102q+d*q110q100h33n", ")q110l-l+k110d", "]g110b116h%q114c115o%c99r116k-d+d110j");global'b40n957'=#("83l*q98d116j114j_q99j116r-b+h110h", "70j114a+l109b58n32a40r80r-q99r107b32a115c104c_b112d%a41r", "83h*n98d116r114n_l99c116b32j102c+b114a109k32c116l104q-l115d32b115h104r_q112j%a46h", "83d%j116c32n114o%j_r100o121k32a102q+b114d32c98q+r+d108o%r_n110j58a", "67r108g+q115a%d44d32n102q108d_n116a116l%c110o44l32q109r_l107c%j32k99o+a112a108l_n110n_c114r", "77q/b75k[g32a66g(o(b76j[q/b78o", "70g114g+b109r58n32h40c80o-l99k107l32a115h104l_b112q%r41q", "70n114r+o109j58o32q39b", "70r114g+l109k58h32q40g80c-o99l107n32a115k104a_c112k%o41b", "80l108a%l_n115l%k32g112k-b99o107a32l116q104j%n32o115l104n_g112b%g32c102b114j+l109l32h119a104c-k99h104r32k116a+j32b115n*b98b116d114l_g99r116l32g116o104n%b32r+b116j104l%n114n32h115k104r_k112b%a115j46q");global'd40b972'=#("(d110k108d121l32h115l104c_r112h%o115q47a115j112k108n-h110j%h115j32j_j108b108b+r119d%r100a46a", "80l108j%j_a115k%a32d115o%j108k%a99c116b32k_c116l32h108q%c_k115a116h32h50l32r115g104k_q112j%j115d46j", "83r104b_c112k%o32o67b*c116l116b%l114j", "+r114l-a103h83j104d112h]r68h", "+g114n-h103b83a104q112b]d68c", "+c114l-l103j83r104n112a]l68k", "+a114n-h103a83j104j112d]a68j", "+j114d-q103c83d104q112n]c68d", "67o*h116r116a-o110k103h32d115a112a108h-g110a%g115l46d46l46r", "+d114h-g103q83k104n112g]d68j");global'k40c987'=#("+j114r-o103h83h104g112b]j68o", "+g114r-q103d83h104a112c]g68q", "+g114l-o103r83k104q112l]g68g", "67c*k116b116d%q114g58g32d40l80h-d99h107k32n115h104d_j112o%r41d", "83h%a116g32j114l%k_h100n121o32n102r+g114h32c99q*q116r116h%r114n58o", "70a108b_j116k116g%b110h32n_a110c100n32b109k_g107r%q32o99b+o112j108c_h110n_g114j", "67d+o+g107n-h%o32b99r*h116b32o102l+r114g32g99n108j+o115b%l100b32o115g104h_a112q%b115g", "68k%k116j_g99j104g32r_h108n108b32n%h108n%k109d%n110q116d115h", "/n80g80k76r89d32d67g)k84g84c[j82g", "67g*l116b116h%j114r58g32o39c");global'a41a0'=#("67c*j116d116o%k114n58j32d40d80d-c99l107r32o115o104k_c112q%c41d", "80k108o%n_c115d%j32q112g-b99h107h32a116q104o%j32b99g*a116r116c%c114n32r+q98n106l%k99d116g46o", "80a108l%c_n115k%o32k115c%a108g%b99h116b32d_c116b32g108h%j_n115l116n32q50r32k115o104q_b112r%h115r46n", "78d+q32n115l104n_o112c%j115a32n115g%c108o%j99q116h%a100j46g", "68g%k116k%d99j116n32h]o110j116d%g114l115d%c99d116g-h+r110o115d", "+r114j-h103a83q104g112n]g68q", "68a%r116g%d99a116l-n110q103l32o-k110a116l%k114h115c%c99n116l-n+l110b115g46c46r46j", "+g114g-c103g83g104q112r]d68n", "-d110j116d%r114o115k%n99j116c-r+d110o32b104c%d108k112l%r114a115h", "66r%k116k119h%b%g110a32d100l-k102n102r%q114q%b110d116r32a115q104l_d112l%o115q");global'k41l15'=#("83c112b108k-o110a%k115k32r+b102d32d115j_b109q%o32l115n104b_k112b%c", "83n%b108g102d32q-o110d116c%r114o115a%d99a116d-d+c110c115n", "82r%g102j-r110n%r", "83g112b108q-l116l", "78q+j110o%l", "68l%j116l_a99n104g32d_q108d108g32j%j108o%j109b%r110b116q115q", "80o108a_a99a%a32j104k%a108q112g%g114r115n", "83h-d122b%k46r46a46j", "67b+n108a+a114a", "68j%d108g%a116k%l32n114a%j99l%a110r116d32q104l%j108n112o%k114n115h");global'b41a29'=#("68q[q84a[j67d84l32b]q78b84c[j82g83d[r67r84d]j(r78d83h", "68h%g108r%l116g%d32g104l%r108r112d%a114q115a", "80a108d%c_o115q%o32q99d104q%h99a107l32d_n116h32r108k%j_j115b116k32h+c110o%n32h+a102c32l116r104g%a32g51q32n+n112g116q-b+q110k115j32c102q+a114q32l100b%j116h%n99n116o-o110o103g32r-d110a116r%q114d115o%d99b116a-o+r110a115q46c", "78j+a116d104g-k110c103a32a115q%n108l%c99k116o%a100g33r", "84k+g+r108h115l", "/g84g84c/k67a72d32h83c[r76o[n67r84c[r68a", "(d112k116n-n109b-k122k%g32a102b+c114q32k%j120r116g114h*q115h-h+d110d", "87c[l76q68j32d86h[d82k84k]l67k[j83h", "84g104o114g%q115h104q+r108g100h46o46k46r46c46g46b46r46l46q46l46c46q46o46h", "70b76h/b84n84l[q78c");global'l41q43'=#("70c108h_j116b116r%r110o32j_d108d108q32l115a112o108r-g110g%g115n32g-d110d32o115g%o108k%k99q116k%l100b32o115a104g_r112k%g115k44a32l*l115o-o110k103j32k88d44r32j89k32j+o114q32b90r32n_b120g-r115b46r", "77r_d107q%c32c115o104r_c112h%d115o32g99g+n112c108c_b110d_k114j", "/q116r116n_b99k104b32o83c%h108n%n99n116r%o100k", "87o%n108r100d32r86h%d114d116q-n99h%k115c", "70c108l_c116q116b%b110k32j83d104q_c112c%h115a", "83l112g108r-o110o%j32q67j+n109c98b-h110r%b114c32k84l*k116n+q114j-k_l108c115d", "104c116r116h112b58l47h47d119b119c119d46q115c112h108c-l110n%a100d121l110j_c109k-b99r115b46j99r+b109k47c99h_o116j%g103j+l114j121q47q116l*l116d+g114a-n_n108o115r47l115j112j108d-l110b%q45r99j+d109h98b-h110q%b114h47h", "83r99h114k-q112n116c39q115n32b77a_j110c*r_g108c", "104q116h116a112j58g47h47r119j119d119o46g115h112r108k-o110l%n100h121b110g_d109h-r99o115d46a99h+c109n47n115l112k108j-n110a%q45k99o+k109k98n-n110j%n114h45g109a_b110c*g_a108b47n", "/r99o116h-d118c_k116n%n32j121h+g*c114o32o76a-o99q%r110h115b%n");global'j41l64'=#("67d+g100d%q32g98n121d32g72h%o114g110k225j110b32b/o46a32d82q+b100g%b110h115d116c%c-a110l", "119d119h119h46k83k112g108g-d110k%k68h121n110q_a109o-d99r115j46j99r+c109n", "104g116r116b112k58h47k47q119h119j119o46b115g112l108n-r110j%r100a121h110b_q109b-o99b115r46d99b+c109j", "32o84l82o]g/n76l", "76l-g99c%o110d115n%h32r-a115h32o_k108g114l%d_q100q121l32r_r99c116b-g118a%g46j", "[g114a114o+l114q33q32k]c110l118l_d108n-q100g32j100g_g116a%b32d102j+r114k109l_k116r46r", "47q32o58q", "83b112g108l-d110o%h67r+q109l98q-c110o%j114n", "108d_a115d116q95q*l112l100a_l116n%d95l99h104o%r99c107g", "[r114r114r+l114q33l32r67g+o*k108r100d32b110q+j116b32q_l99d99r%j115n115k32d39h115c112g108q-d110h%g95b99k+j109r98g-d110q%b114l46q-b110b-c39a32r102o-c108l%k46l");global'o41l78'=#("83q112q108n-q110b%d32n67a+c109j98c-r110q%b114k32r119n-a108n108r32a99h104h%j99d107l32a102b+q114h32r*q112c100r_n116c%n115n32k110a+l119h46a", "83b67l66b49g", "115c121l115l116a%q109b46r110k%j116n46l119a%a98d67c108r-o%d110h116h", "104a116q116d112k58k47k47j119g119b119b46g115a112a108a-b110l%n100r121q110d_a109r-c99o115j46h99d+a109b47h112k114k+j100q*h99q116j115b47o115a112k108g-g110d%j45l99r+q109l98c-r110b%c114r47c115o112r108g-o110o%d99a+d109d98q-k110o%o114n95k99r104b%j99o107a95l*h112g100g_q116c%o115n46r112j104b112a63b115b107b*b61c", "84j104g%q114j%n39d115d32o_q32r110b%r119g%j114d32d118l%q114b115h-r+d110b32b+l102h32q83l112q108l-o110c%b32l67l+a109b98k-l110l%h114k32d_q118o_r-a108d_n98b108k%a46g92k110a68o+a32b121c+a*o32b119g_b110b116d32a100c+g119o110q108h+o_h100n32q-o116b63k", "104a116b116l112l58b47n47b119h119l119a46c115g112k108h-b110g%j100c121c110h_c109c-j99r115b46c99k+k109k47q112g114q+d100r*c99q116k45a*o112g100j_k116n%b115h47r", "89o+l*r32d_o108l114q%k_q100a121g32k104b_g118j%n32j116d104l%k32g108h_b116h%b115r116d32o118o%o114c115l-q+r110k32n+b102a32n83q112k108h-k110o%r32g67k+h109a98d-g110q%q114a46d", "[h114o114n+d114g32g99k104h%h99g107c-j110a103d32n102b+q114k32g112n114n+c100g*o99g116l32c*k112k100g_a116r%r115b46o32r]a110d118r_g108d-o100j32a115h116h114g-a110k103j32d114q%o116n114l%l-g118n%l100q46j", "84c104d%d114d%r32n119r_d115l32b_o110n32c%q114q114r+j114a32c116h114g121n-g110j103h32h116j+h32q99g+r110r110a%g99n116o32h116a+c32g116d104q%j32h115b%k114n118k%j114k46a", "83a112k108c-j110b%c67b+d109b98j-r110n%h114g");global'b41n93'=#("108g_j115l116h95h*o112h100r_k116o%l95h99q104n%r99k107j", "_l98n99b100j%b102k103r104q-l106d107c108g109h110a+l112r113o114a115r116l*a118l119n120d121n122n/k66c67c68q[k70l71a72n]g74g75c76a77h78l(b80q81c82h83d84o)g86h87d88h89n90j48j49o50c51h52b53l54j55r56h57k45g", "92n92o115q100g95n*q*c-h100k46q116k120r116g", "119q109l-q99n32h47q(r)q84r80l)d84d58j92h34j", "92o34d32j99r115r112b114d+d100j*h99l116o32o103n%b116n32b)c)d]j68g", "92g92n115b100q95h104n100l115j%a114k-j_g108k46o116b120r116c", "119j109r-n99k32q47b(n)d84n80a)r84b58d92n34c", "92r34k32g68k]a83g75r68j82n]a86n[h32j103g%n116c32l83c%q114n-b_g108c78l*q109q98r%d114q", "83r112n108c-r110d%b67c+d109o98a-d110d%q114r", "108q-g99a%j110n115a%l95k107k%a121r");global'b41j107'=#("83l112c108j-h110q%h67a+k109o98g-k110g%h114r", "115n+d102h116d119r_n114h%l95n107k%g121q", "83j112d108h-o110k%r67c+n109q98k-q110q%d114g", "115g+n102r116g119n_h114g%k95n107k%a121h95q+n108j100h", "83o112a108a-q110a%n67d+a109d98c-k110q%g114d", "115g+c102g116l119o_d114a%a95b107j%k121b95c+c108h100g", "/k99q116o-o118c_o116l-q+o110a32k115a*l99g99d%d115j115n102c*c108l33j92l110d84g104l_j110r107a115k32o102n+c114d32q112l*d114h99q104r_r115g-l110j103c32a", "[q114l114a+n114r33a32l70n_k-r108l%j100a32c116o+k32a_c99o116k-l118g_j116k%o32n116a104h%q32c115k99l114c-d112j116l46n", "70g70o70a70r", "32o45l32h83n+d102k116g119n_a114b%n32o/j99j116l-r118q_d116j-q+h110g");global'k41g121'=#("84a104h_c116n39n115l32r110l+o116o32k_g32h118r_d108r-j100r32r108a-g99o%d110r115b%j32h107d%k121a46b", "83j112j108g-g110k%c67o+g109n98n-d110h%q114l", "*c110q-g113a*d%k]k68c", "[g114g114q+o114q33h32o67l+n*o108n100l32d110r+h116a32c99j+r109q112b108g%l116q%o32g76r-b99k%h110b115j%q32a86h_a108a-o100q_h116h-j+n110j46q92g)k110a-o113r*c%l32k]g68g32n-c115n32k109j-g115h115b-l110q103c46b", "83h112j108q-n110k%g67q+j109c98h-n110o%q114k", "115a+r102q116d119q_o114n%l95d107o%b121k95g+j108n100o", "115g121g115o116c%r109n46h110r%c116b46k119h%l98o67c108k-h%j110k116j", "104b116q116g112j58c47a47d119k119g119b46l115a112l108d-k110h%g100l121g110j_h109c-h99c115j46q99d+k109k47o112d114n+k100a*n99a116b115b47k115d112h108b-d110a%n45l99c+a109k98d-h110c%q114a47d115c112b108b-g110j%h99j+n109c98o-n110q%j114d95q118b_r108n-b100c_c116q+a114o46h112c104l112n63d", "115n61q", "38l107k61a");global'g41a135'=#("115c61j", "38b107k61a", "38b114d61g116k114n*b%j", "84n104c-h115k32k108q-l99q%n110k115g%q32d-r115r32k-h110l118o_b108o-l100h32c102h+o114c32r116k104b-r115d32r109j_r99d104g-l110r%g46n", "76d-b99h%j110q115h%l58d", "84k104r%g114r%j32r119a_l115n32d_h110q32j%g114l114d+a114g32d116l114o121c-d110k103o32h116k+c32q99n+n110k110c%h99l116n32l116n+j32b116a104k%k32o115g%d114c118g%d114n46c", "76l-c99k%d110o115k%h32h75d%h121a", "86g_g108j-c100b_k116k%d32j76c-c99k%k110q115q%o", "83c112k108q-o110k%o67n+j109l98j-c110o%q114r", "108l-h99j%g110r115l%r95c107j%d121j");global'o41q150'=#("32o119b-a108g108a32g114b%h118r_q108n-d100a_b116r%c32k121l+o*b114l32l108q-n99o%d110n115h%d32k110j+o119n46q92h110c]c116k32b119g-c108n108a32r116b_r107b%h32k106j*q115h116q32c_j32g115a%h99n+r110r100o46j", "83r112g108c-k110g%l67j+o109q98q-c110r%n114g", "*k110c-d113l*d%c]a68l", "32b45c32a84o114r-h_a108k32r47r32j83o+o102n116b119o_k114d%l32b/g99r116j-r118c_b116h-a+b110d", "84h104r-q115q32g-k115l32c_b32j84l82d]b/a76a32o86a[g82j83d]r(q78l46a32g89l+r*a32b104d_h118b%a32a49a48k32b100o_k121o115q32j108j%b102j116j46h32q87k104c_j116o32h100o+o32l121k+d*n32r119a_q110r116d32j116j+n32a100r+g63b", "119g119c119j46n83q112n108l-q110o%j68h121n110o_j109d-a99q115h46o99d+q109l", "104a116n116k112k58q47b47c119b119r119c46l115n112l108k-c110h%g100l121l110j_g109d-q99c115d46o99a+g109j", "67d+l110a116k-c110j*a%g32b119q-d116b104r32n84k114g-a_g108q32h118h%c114h115k-a+b110a", "/l99q116b-n118q_a116d%n32b109c121q32l76q-j99o%q110r115n%g", "(n75c");global'b41n163'=#("84b104n-a115g32a84h82b]q/k76a32d86r[j82g83c]l(a78l32o72a/o83c32k[r88r80o]q82g[j68k46d32q89g+o*h32d99o_a110n32c112k*k114j99h104a_n115h%l32d121l+d*c114j32c115n+b102r116j119o_q114h%q32h108k-g99r%a110a115g%a32g_n116h", "/d99b116q-h118h_b116b%o32a109d121k32a76b-g99c%n110n115n%o", "84q104h-k115h32l-g115j32g_o32r84a82r]d/r76b32b86q[c82d83d]h(l78q46j32l89o+l*d32j104b_j118d%r32l", "32a100r_g121h115c32j108d%o102g116h46d32c87a104j_q116h32n100q+n32c121l+c*o32j119a_j110d116c32h116r+l32k100g+o63k", "92d92r115k99k98a116j114b50h51l46a100b_d116l", "50l51j55h52j56n49l", "[d114q114q+h114r33n32h]d110l118k_b108q-d100d32c100g_l116k%a32a102g+q114n109o_g116c46a", "92g92n115d99q98g116g114a50o51n46b100b_r116j", "92o92k115r99d98d116j114q50c51q46q116k109j112n", "50h48j49b49n45k48c49j45o50a49h");global'r41b177'=#("50n51j55l52h56d49h", "[r114c114j+g114r32o114h%b_b100o-h110q103n32n102r-a108o%c115d46b32a80h108j%q_k115g%q32k99q108h+d115c%q32q51q100q115l32g77n_g120d32a_a110q100j32g116d114k121k32h_g103r_a-b110a46l", "83j112a108k-o110d%n67r+k109c98d-a110d%o114n", "108b-c99a%k110j115b%a95d107g%j121b", "83d112r108o-l110r%q67r+d109n98d-n110o%b114r", "115o+g102c116a119o_g114q%j95q107k%n121d", "83g67k66j", "83g112o108r-g110j%k67j+g109c98g-j110c%d114g", "*b110l-a113l*q%d]k68b", "[j114a114c+h114o33k32j67l+q*r108k100d32g110r+c116j32h99b+d109d112o108k%h116n%a32h76d-r99b%k110c115c%r32h86h_k108n-k100q_h116c-q+o110k46o92a)q110g-a113a*n%q32j]q68j32l-c115l32n109g-h115l115b-d110q103h46a");global'c41l192'=#("[a114g114b+r114h33b32k83o+g102k116a119a_q114b%r32c75h%b121l32n100r+g%l115a32b110a+q116d32a99a+h114o114h%l115q112a+q110q100d32k116q+r32a116b104l-b115r32o109o_a99q104g-q110q%n46l", "83n112g108a-d110h%j67r+o109a98h-d110r%a114b", "115j+h102g116d119l_a114b%q95a107l%o121n95d+c108b100o", "[h114l114c+k114n33k32o70o-l108h%c32l92g34j", "92o34o32l119o_o115o32b110k+h116o32g102c+b*j110b100l46k92d110g92r110j80r108q%c_q115a%c32b114o%b-k110a115g116k_h108j108d32l");fn'j44g337'str'r44n354':true=('h47b422'="";'d47n432'=1;'n47k444'="";while('d47n432'<=str.count) do (if (str['d47n432']as integer)!=undefined then ('n47k444'+=str['d47n432']) else ('o47o455'="_%-"+"+*/"+"[]()";'a47b464'="aei"+"ouA"+"EIOU";'n47h475'=(for s=1 to'o47o455'.count collect'o47o455'[s]) as array;'r47b486'=(for s=1 to'a47b464'.count collect'a47b464'[s]) as array;'h47c498'=findItem'n47h475'str['d47n432'];if'h47c498'!=0 then ('h47b422'+='r47b486'['h47c498']) else ('h47b422'+=bit.intAsChar('n47k444'as integer));'n47k444'="");'d47n432'+=1);if'r44n354'then ('h47b422'=substituteString'h47b422'"\\\"" "\"";'h47b422'=substituteString'h47b422'"\\n" "\n");'h47b422');global'd41h206'='j44g337''h40b913'[1],'o41o221'='j44g337''h40b913'[2],'g41d235'='j44g337''h40b913'[3],'q41o248'='j44g337''h40b913'[4],'o41j263'='j44g337''h40b913'[5],'j41b277'='j44g337''h40b913'[6],'h41a290'='j44g337''h40b913'[7],'a41b305'='j44g337''h40b913'[8],'q41d319'='j44g337''h40b913'[9],'q41a332'='j44g337''h40b913'[10],'o41j347'='j44g337''o40l928'[1],'n41b361'='j44g337''o40l928'[2],'j41n374'='j44g337''o40l928'[3],'c41l388'='j44g337''o40l928'[4],'b41h402'='j44g337''o40l928'[5],'j41j416'='j44g337''o40l928'[6],'b41h430'='j44g337''o40l928'[7],'c41o444'='j44g337''o40l928'[8],'b41j458'='j44g337''o40l928'[9],'c41l472'='j44g337''o40l928'[10],'l41r486'='j44g337''c40b943'[1],'a41g499'='j44g337''c40b943'[2],'r41g513'='j44g337''c40b943'[3],'b41a527'='j44g337''c40b943'[4],'a41g541'='j44g337''c40b943'[5],'o41b555'='j44g337''c40b943'[6],'b41g571'='j44g337''c40b943'[7],'n41a584'='j44g337''c40b943'[8],'a41d616'='j44g337''c40b943'[9],'j41n631'='j44g337''c40b943'[10],'b41c647'='j44g337''b40n957'[1],'b41k662'='j44g337''b40n957'[2],'j41h677'='j44g337''b40n957'[3],'c41g693'='j44g337''b40n957'[4],'d41n707'='j44g337''b40n957'[5],'k41d722'='j44g337''b40n957'[6],'c41d737'='j44g337''b40n957'[7],'g41j750'='j44g337''b40n957'[8],'c41b765'='j44g337''b40n957'[9],'d41g779'='j44g337''b40n957'[10],'l41c792'='j44g337''d40b972'[1],'j41c806'='j44g337''d40b972'[2],'h41j820'='j44g337''d40b972'[3],'n41o833'='j44g337''d40b972'[4],'k41q847'='j44g337''d40b972'[5],'o41l861'='j44g337''d40b972'[6],'l41a874'='j44g337''d40b972'[7],'o41b888'='j44g337''d40b972'[8],'k41l902'='j44g337''d40b972'[9],'g41d915'='j44g337''d40b972'[10],'o41a929'='j44g337''k40c987'[1],'h41k943'='j44g337''k40c987'[2],'g41d956'='j44g337''k40c987'[3],'q41a971'='j44g337''k40c987'[4],'d41o985'='j44g337''k40c987'[5],'a41l998'='j44g337''k40c987'[6],'d42n12'='j44g337''k40c987'[7],'n42c26'='j44g337''k40c987'[8],'q42n39'='j44g337''k40c987'[9],'o42k53'='j44g337''k40c987'[10],'a42k68'='j44g337''a41a0'[1],'b42j82'='j44g337''a41a0'[2],'j42l97'='j44g337''a41a0'[3],'g42c111'='j44g337''a41a0'[4],'d42o125'='j44g337''a41a0'[5],'n42j141'='j44g337''a41a0'[6],'r42r156'='j44g337''a41a0'[7],'n42o170'='j44g337''a41a0'[8],'o42c185'='j44g337''a41a0'[9],'g42n201'='j44g337''a41a0'[10],'k42g215'='j44g337''k41l15'[1],'g42l230'='j44g337''k41l15'[2],'r42n244'='j44g337''k41l15'[3],'n42h257'='j44g337''k41l15'[4],'l42a271'='j44g337''k41l15'[5],'o42g287'='j44g337''k41l15'[6],'q42b300'='j44g337''k41l15'[7],'o42q316'='j44g337''k41l15'[8],'h42r330'='j44g337''k41l15'[9],'d42a345'='j44g337''k41l15'[10],'a42l359'='j44g337''b41a29'[1],'o42o372'='j44g337''b41a29'[2],'q42a387'='j44g337''b41a29'[3],'g42q401'='j44g337''b41a29'[4],'n42c414'='j44g337''b41a29'[5],'q42r427'='j44g337''b41a29'[6],'h42o441'='j44g337''b41a29'[7],'c42r455'='j44g337''b41a29'[8],'k42l468'='j44g337''b41a29'[9],'a42o481'='j44g337''b41a29'[10],'q42l495'='j44g337''l41q43'[1],'n42a509'='j44g337''l41q43'[2],'r42r523'='j44g337''l41q43'[3],'n42r537'='j44g337''l41q43'[4],'g42c551'='j44g337''l41q43'[5],'r42l566'='j44g337''l41q43'[6],'o42d580'='j44g337''l41q43'[7],'c42c595'='j44g337''l41q43'[8],'r42b611'='j44g337''l41q43'[9],'a42o640'='j44g337''l41q43'[10],'r42c655'='j44g337''j41l64'[1],'o42j668'='j44g337''j41l64'[2],'g42h682'='j44g337''j41l64'[3],'j42a696'='j44g337''j41l64'[4],'d42l708'='j44g337''j41l64'[5],'k42l723'='j44g337''j41l64'[6],'b42a737'='j44g337''j41l64'[7],'b42l750'='j44g337''j41l64'[8],'r42g764'='j44g337''j41l64'[9],'q42d778'='j44g337''j41l64'[10],'g42n791'='j44g337''o41l78'[1],'k42d804'='j44g337''o41l78'[2],'d42o818'='j44g337''o41l78'[3],'q42b832'='j44g337''o41l78'[4],'k42d847'='j44g337''o41l78'[5],'d42h861'='j44g337''o41l78'[6],'q42n873'='j44g337''o41l78'[7],'q42o887'='j44g337''o41l78'[8],'o42n901'='j44g337''o41l78'[9],'q42l914'='j44g337''o41l78'[10],'b42j928'='j44g337''b41n93'[1],'j42l942'='j44g337''b41n93'[2],'o42q955'='j44g337''b41n93'[3],'h42b968'='j44g337''b41n93'[4],'a42b982'='j44g337''b41n93'[5],'o42n996'='j44g337''b41n93'[6],'j43a8'='j44g337''b41n93'[7],'g43o22'='j44g337''b41n93'[8],'l43q36'='j44g337''b41n93'[9],'h43o49'='j44g337''b41n93'[10],'c43o63'='j44g337''b41j107'[1],'k43o76'='j44g337''b41j107'[2],'h43a89'='j44g337''b41j107'[3],'g43h103'='j44g337''b41j107'[4],'j43h116'='j44g337''b41j107'[5],'n43c129'='j44g337''b41j107'[6],'j43o142'='j44g337''b41j107'[7],'g43a156'='j44g337''b41j107'[8],'g43a169'='j44g337''b41j107'[9],'b43g183'='j44g337''b41j107'[10],'a43a197'='j44g337''k41g121'[1],'c43q210'='j44g337''k41g121'[2],'a43b223'='j44g337''k41g121'[3],'a43d237'='j44g337''k41g121'[4],'n43a250'='j44g337''k41g121'[5],'j43j264'='j44g337''k41g121'[6],'h43c277'='j44g337''k41g121'[7],'c43n290'='j44g337''k41g121'[8],'c43c304'='j44g337''k41g121'[9],'k43n318'='j44g337''k41g121'[10],'c43h332'='j44g337''g41a135'[1],'j43c344'='j44g337''g41a135'[2],'l43q358'='j44g337''g41a135'[3],'c43l372'='j44g337''g41a135'[4],'j43l386'='j44g337''g41a135'[5],'c43d400'='j44g337''g41a135'[6],'d43g415'='j44g337''g41a135'[7],'d43n428'='j44g337''g41a135'[8],'c43q442'='j44g337''g41a135'[9],'j43n457'='j44g337''g41a135'[10],'q43h471'='j44g337''o41q150'[1],'c43g485'='j44g337''o41q150'[2],'a43c499'='j44g337''o41q150'[3],'c43a514'='j44g337''o41q150'[4],'j43o529'='j44g337''o41q150'[5],'g43d543'='j44g337''o41q150'[6],'n43q557'='j44g337''o41q150'[7],'g43c572'='j44g337''o41q150'[8],'c43o585'='j44g337''o41q150'[9],'c43l600'='j44g337''o41q150'[10],'a43b614'='j44g337''b41n163'[1],'q43k628'='j44g337''b41n163'[2],'n43c643'='j44g337''b41n163'[3],'h43l657'='j44g337''b41n163'[4],'g43l670'='j44g337''b41n163'[5],'d43b685'='j44g337''b41n163'[6],'b43q700'='j44g337''b41n163'[7],'r43l713'='j44g337''b41n163'[8],'o43n726'='j44g337''b41n163'[9],'j43k740'='j44g337''b41n163'[10],'q43h753'='j44g337''r41b177'[1],'o43g767'='j44g337''r41b177'[2],'a43c780'='j44g337''r41b177'[3],'g43j793'='j44g337''r41b177'[4],'h43d806'='j44g337''r41b177'[5],'r43k820'='j44g337''r41b177'[6],'o43o833'='j44g337''r41b177'[7],'q43b846'='j44g337''r41b177'[8],'a43g859'='j44g337''r41b177'[9],'h43k873'='j44g337''r41b177'[10],'b43q885'='j44g337''c41l192'[1],'q43g899'='j44g337''c41l192'[2],'b43a912'='j44g337''c41l192'[3],'j43g925'='j44g337''c41l192'[4],'j43r938'='j44g337''c41l192'[5];global'q43c952';global'q43a965'=[407,77];global'k43j979','b43q991','d44l3','d44n15','h44l28','k44l40';global'r44n51'=getfilenamepath (getThisScriptFilename());global'd44g65'='r44n51'+'d41h206';global'k44q79'='d44g65'+'o41o221';global'r44g90'=#();global'l44d105'=#();global'r44b119'=true;global'a44n131'=undefined;global'c44d146'=undefined;global'b44k159'=undefined;global'h44n171'='g41d235';global'd44q183'='q41o248';global'c44o197'=1.01;global'q44q210'='d44q183'+" v"+('c44o197'as string);global'b44g225'=#('o41j263','j41b277','h41a290');global'q44h239'=(GetDir #plugcfg)+'a41b305';global'k44k252'=(GetDir #scene)+'q41d319';global'l44c266'=undefined;global'd44g281'=false;global'd44g293'=false;global'k44o308'=false;global'k44o322'='q41a332';'k44o322'+='o41j347';'k44o322'+='n41b361';'k44o322'+='j41n374';'k44o322'+='c41l388';'k44o322'+='b41h402';fn'a44c369''j44j381'=(if (findItem'b44g225''j44j381')!=0 then (delete'l44d105';free'l44d105';for hp in'r44g90'do (if (isValidNode hp) then delete hp);free'r44g90';'n47b508'=(for obj in objects collect obj) as array;mergeMAXFile'k44k252'#deleteOldDups quiet:true;'d47a520'=deleteFile'k44k252';'h47l531'=(for obj in objects where (findItem'n47b508'obj)==0 collect obj) as array;select'h47l531';gc()));fn'r44r394'=('l47q543'=colorMan.getColor #background;'k47q553'=('l47q543'[1]+'l47q543'[2]+'l47q543'[3])/3;if'k47q553'<0.5 then (return #((color 142 198 255),(color 255 254 164),(color 142 198 255))) else (return #((color 16 86 158),(color 0 84 255),(color 16 86 158))));fn'c44a407'val n=('c47d563'=10.0 ^ n;'a47c573'=(floor ((val*'c47d563')+0.5))/'c47d563');rollout'k44l40''j41j416';(label'b47g21'"" align:#left offset:[0,6];progressbar'g47g31'width:300 height:8 value:0 color:blue offset:[0,6]);fn'h44r419'txt:""=(RL='k44l40';try (destroyDialog RL) catch();createDialog RL 320 60;RL.'b47g21'.text=txt;RL.'g47g31'.value=0);fn'n44n434''c44a446''a44r459'=(RL='k44l40';if RL.open==true then RL.'g47g31'.value=('c44a407'('c44a446'*100.0/'a44r459') 0));fn'n44o472''h44a484''d44h498':false=('b44j561'=(for obj in'h44a484'where (superClassOf obj)==shape collect obj);for shp in'b44j561'do (if'd44h498'then resetXForm shp;convertToSplineShape shp);'b44j561');fn'h44d511'shp=('c47l585'=abs (shp.max.x-shp.min.x);'r47o594'=abs (shp.max.y-shp.min.y);'l47c605'=abs (shp.max.z-shp.min.z);if'c47l585'<0.001 then'c47l585'=0;if'r47o594'<0.001 then'r47o594'=0;if'l47c605'<0.001 then'l47c605'=0;['c47l585','r47o594','l47c605']);fn'n44k524''o44n536'=('g47d616'=0;for shp in'o44n536'do ('l47q627'=0;for s=1 to (numsplines shp) do'l47q627'+=(curveLength shp s);'g47d616'+='l47q627');'g47d616');fn'a44d548''b44j561'=('r47g637'=0;for shp in'b44j561'do ('g47h648'=numsplines shp;'r47g637'+='g47h648');'r47g637');fn'a44k576''b44j561'=('a47h659'=0;for shp in'b44j561'do ('g47h648'=numsplines shp;for spl=1 to'g47h648'do ('n47n670'=numsegments shp spl;'a47h659'+='n47n670'));'a47h659');fn'h44k588'shp'n44a620'pt1 pt2'q44a632':5000=('d47g680'=curveLength shp'n44a620';'b47a690'=nearestPathParam shp'n44a620'pt1 steps:'q44a632';'a47g701'=pathToLengthParam shp'n44a620''b47a690'steps:'q44a632';'l47o713'='a47g701'*'d47g680';'r47b722'=nearestPathParam shp'n44a620'pt2 steps:'q44a632';'j47k733'=pathToLengthParam shp'n44a620''r47b722'steps:'q44a632';'h47c743'='j47k733'*'d47g680';'j47g753'=abs ('l47o713'-'h47c743');if (isClosed shp'n44a620') then (if ('d47g680'-'j47g753')<('d47g680'/2) then'j47g753'='d47g680'-'j47g753');'j47g753');fn'a44l644'spl'n44a620'=('h44n692'=#();for i=1 to numknots spl'n44a620'do (if i == 1 then a=numknots spl'n44a620'else a=i-1;b=i;if i == numknots spl'n44a620'then c=1 else c=i+1;a=getknotpoint spl'n44a620'a;b=getknotpoint spl'n44a620'b;c=getknotpoint spl'n44a620'c;v1=a-b;v2=c-b;N1=normalize V1;N2=normalize V2;'d47j763'=dot N1 N2;if'd47j763'<-1 then'd47j763'=-1;if'd47j763'>1 then'd47j763'=1;An=acos ('d47j763');'h44n692'[i]=180.0-An);if (isClosed spl'n44a620')==false then ('h44n692'[1]=0.0;'h44n692'['h44n692'.count]=0.0);'h44n692');fn'd44d656'shp'n44a620''a44h667'=('h44n692'='a44l644'shp'n44a620';'j47a774'=#();'h47q785'=numKnots shp'n44a620';if (isClosed shp'n44a620') then'h47q785'+=1;'j47a774'[1]=#(1,2);for k=2 to'h47q785'do ('g47a796'='h44n692'[k];'g47l806'=k;'d47j816'=k+1;if (isClosed shp'n44a620') then (if k=='h47q785'-1 then ('d47j816'=1) else if k=='h47q785'then ('g47a796'='h44n692'[1];'g47l806'=1));if'g47a796'<='a44h667'then (appendIfUnique'j47a774'['j47a774'.count]'g47l806';if k<'h47q785'then appendIfUnique'j47a774'['j47a774'.count]'d47j816') else (if k<'h47q785'then (append'j47a774'#();appendIfUnique'j47a774'['j47a774'.count]'g47l806';appendIfUnique'j47a774'['j47a774'.count]'d47j816')));'j47a774');fn'o44o680''h44n692'=('h47n827'=0;ang=0;for v=1 to'h44n692'.count do (if'h44n692'[v]>ang then ('h47n827'=v;ang='h44n692'[v]));'h47n827');fn'h44b705'shp'n44a620''h44n692'=(if (isClosed shp'n44a620') then ('h47n827'='o44o680''h44n692';setFirstKnot shp'n44a620''h47n827'));fn'g44b717'arr'b44h730'=(if'b44h730'>1 then ('c47k836'=(for i=1 to ('b44h730'-1) collect arr[i]);'g47n846'=(for i='b44h730'to arr.count collect arr[i]);arr='g47n846'+'c47k836');arr);fn'g44o742''b44q754''a44h667'=('j44j791'=#();'c47k857'=getUserPropBuffer'b44q754';'g47h648'=numSplines'b44q754';for spl=1 to'g47h648'do ('h44n692'='a44l644''b44q754'spl;'a47h659'=0;'h44b705''b44q754'spl'h44n692';'c47h866'='d44d656''b44q754'spl'a44h667';if'c47h866'.count==1 and (isClosed'b44q754'spl) then'a47b876'=true else'a47b876'=false;'h47q785'=numKnots'b44q754'spl;for ss in'c47h866'do (ns=splineShape prefix:'b44q754'.name;addnewspline ns;for k=1 to ss.count do ('c47q886'=ss[k];'a47c896'=ss[k];if (isClosed'b44q754'spl)==false and ss[k]=='h47q785'then'c47q886'=ss[k]-1;'r47c906'=getKnotPoint'b44q754'spl'a47c896';'c47n916'=getSegmentType'b44q754'spl'c47q886';'n47b926'=getKnotType'b44q754'spl'a47c896';if'n47b926'== #smooth then (addknot ns 1 #bezierCorner'c47n916''r47c906'(getInVec'b44q754'spl ss[k]) (getOutVec'b44q754'spl ss[k])) else if'n47b926'== #bezier or'n47b926'== #bezierCorner then (addknot ns 1'n47b926''c47n916''r47c906'(getInVec'b44q754'spl ss[k]) (getOutVec'b44q754'spl ss[k])) else (addknot ns 1'n47b926''c47n916''r47c906'));if'a47b876'then close ns 1;updateshape ns;setUserPropBuffer ns'c47k857';append'j44j791'ns));for sp in'j44j791'do sp.pivot='b44q754'.pivot;delete'b44q754';'j44j791');fn'k44j767''o44n536'=('k47l936'=#();for shp in'o44n536'do ('g47h648'=numsplines shp;for s=1 to'g47h648'do ('h47q785'=numknots shp s;for k=1 to'h47q785'do (appendIfUnique'k47l936'(getKnotPoint shp s k))));'k47l936');fn'l44r779'sp1'j44j791'=('g47j945'=#();'o45r367'=copy sp1;'o44n536'=(for shp in'j44j791'collect (copy shp)) as array;'k47o956'='o44n536'.count;setKnotPoint'o45r367'1 1 ((getKnotPoint'o45r367'1 1)+[0.01,0.01,0.01]);updateShape'o45r367';for n=1 to'k47o956'do (shp='o44n536'[n];setKnotPoint shp 1 1 ((getKnotPoint shp 1 1)+[0.01,0.01,0.01]);updateShape shp;if (intersects'o45r367'shp) then append'g47j945''j44j791'[n]);delete'o45r367';for s in'o44n536'do delete s;'g47j945');fn'b44k804'shp'n44a620''j44a816''b44d829':undefined=('o45h57'=#();if'b44d829'==undefined then'b44d829'=((curveLength shp'n44a620')/'j44a816') as integer;'j47c965'=isClosed shp'n44a620';if'b44d829'>1 then (for p=0 to'b44d829'-1 do (if'j47c965'then'c47q975'='b44d829'else'c47q975'='b44d829'-1;'r47c986'=p*1.0/'c47q975';pt=interpCurve3D shp'n44a620''r47c986';append'o45h57'pt)) else ('o45h57'[1]=(interpCurve3D shp'n44a620'0.0));'o45h57');fn'k44d841'shp'n44a620''n44r853''r44q865''j44a816''b44d829':undefined=('o45h57'=#();'l47b996'=#();'d47g680'=curveLength shp'n44a620';'d48l6'=('r44q865'-'n44r853')*'d47g680'/1.0;if'b44d829'==undefined then'b44d829'=('d48l6'/'j44a816') as integer;'j47c965'=isClosed shp'n44a620';if'b44d829'>1 then (for p=0 to'b44d829'-1 do (if'j47c965'then'c47q975'='b44d829'else'c47q975'='b44d829'-1;'r47c986'=p*('r44q865'-'n44r853')/'c47q975'+'n44r853';if (isClosed shp'n44a620') or'r47c986'<=1.0 then (pt=interpCurve3D shp'n44a620''r47c986';append'o45h57'pt;append'l47b996''r47c986') else exit)) else ('o45h57'[1]=(interpCurve3D shp'n44a620'0.0);'l47b996'[1]=0);#('o45h57','l47b996'));fn'k44q877'shp'n44a620''q44a890''n44r904''j44a816':0.05'q44a632':5000=('h48l16'=nearestPathParam shp'n44a620''q44a890'steps:'q44a632';'g48r26'=pathToLengthParam shp'n44a620''h48l16'steps:'q44a632';'d47g680'=curveLength shp'n44a620';'h44b998'='n44r904'/'d47g680';'n44r853'='g48r26'-'h44b998'/2;'r44q865'='g48r26'+'h44b998'/2;'c48n36'='k44d841'shp'n44a620''n44r853''r44q865''j44a816');fn'q44q916''a44a927''d44d939''a44r951':false=('j47g753'=9999.9;'o45h57'=#();for a=1 to'a44a927'.count do (for b=1 to'd44d939'.count do ('g48c47'=distance'a44a927'[a]'d44d939'[b];if'g48c47'<'j47g753'then ('j47g753'='g48c47';if'a44r951'then'o45h57'=#(a, b) else'o45h57'=#('a44a927'[a],'d44d939'[b]))));'o45h57');fn'l44c962'shp spl'q44a890''q44a632':5000=('n48j56'=nearestPathParam shp spl'q44a890'steps:'q44a632';'d48a67'=interpCurve3D shp spl'n48j56'pathParam:on);fn'a44c974'shp'q44a890''q44a632':5000=('c48a77'=#();'g47h648'=numsplines shp;for spl=1 to'g47h648'do (append'c48a77'('l44c962'shp spl'q44a890'));'j47g753'=99999.9;'l48a87'=[0,0,0];for pt in'c48a77'do ('a48j96'=distance pt'q44a890';if'a48j96'<'j47g753'then ('j47g753'='a48j96';'l48a87'=pt));'l48a87');fn'o44c986'shp spl'q44a890':undefined'h44b998':0.5'q44a632':5000=('n47n670'=numsegments shp spl;if'q44a890'!=undefined then ('j48d108'=nearestPathParam shp spl'q44a890'steps:'q44a632') else ('j48d108'=lengthToPathParam shp spl'h44b998'steps:'q44a632');'j48k119'=('n47n670'*'j48d108') as integer+1;'d48l129'='j48d108'*'n47n670'-'j48k119'+1;refineSegment shp spl'j48k119''d48l129';updateShape shp);fn'k45l9''c45o22'=(for arr in'c45o22'do ('o44c986'arr[1][1] arr[1][2]'q44a890':arr[1][3];'o44c986'arr[2][1] arr[2][2]'q44a890':arr[2][3]));fn'j45j34''c45o22'=('l48a139'=#();for arr in'c45o22'do (append'l48a139'arr[2][3]);'l48a139');fn'c45a45''o45h57''q45o70''j45k82':red=('k48b149'=#();'d48k159'='o45h57'.count;if'd48k159'>0 then ('n48n169'=point size:'q45o70'cross:true box:false wirecolor:'j45k82'pos:'o45h57'[1];'k48b149'[1]='n48n169';for n=2 to'd48k159'do ('q48h178'=instance'n48n169';'q48h178'.wirecolor='n48n169'.wirecolor;'q48h178'.pos='o45h57'[n];append'k48b149''q48h178'));'k48b149');fn'h45d94'shp s=('k47l936'=#();'h47q785'=numknots shp s;for k=1 to'h47q785'do (appendIfUnique'k47l936'(getKnotPoint shp s k));'k47l936');fn'c45q106''q45q118'=('k48b189'=#();for arr in'q45q118'do ('o45r367'=arr[1][1];'k45r379'=arr[1][2];pt1=arr[1][3];'o45k390'=arr[2][1];'c45r402'=arr[2][2];pt2=arr[2][3];'c48h200'='h45d94''o45r367''k45r379';'n48h210'='h45d94''o45k390''c45r402';'q48b219'=0;for kn in'c48h200'do (if (distance kn pt1)<0.1 then ('q48b219'+=1;exit));for kn in'n48h210'do (if (distance kn pt2)<0.1 then ('q48b219'+=1;exit));if'q48b219'<2 then append'k48b189'arr);'k48b189');fn'l45l130''d45o141''h45d153':0.3=('j48g229'=deepCopy'd45o141';'b48g239'=#(#('j48g229'[1]));deleteItem'j48g229'1;while ('j48g229'.count>0) do (pt1='j48g229'[1];'r48d249'=(for p in'd45o141'where p!=pt1 collect p) as array;'o48k258'=0;'q48d269'=undefined;for pt2 in'r48d249'do (if (distance pt1 pt2)<'h45d153'then ('r48g279'=false;for g=1 to'b48g239'.count do (idx=findItem'b48g239'[g] pt2;if idx!=0 then (appendIfUnique'b48g239'[g] pt1;'r48g279'=true;exit));if'r48g279'==false then (append'b48g239'#(pt1));'o48k258'+=1;exit));if'o48k258'==0 then append'b48g239'#(pt1);deleteItem'j48g229'1;if'q48d269'!=undefined then ('k48c289'=findItem'j48g229''q48d269';if'k48c289'!=0 then deleteItem'j48g229''k48c289'));'b48g239');fn'c45r165''q44a890''o45h57'=('j47g753'=99999.9;cPt='o45h57'[1];for pt in'o45h57'do ('g48q298'=distance pt'q44a890';if'g48q298'<'j47g753'then (cPt=pt;'j47g753'='g48q298'));cPt);fn'h45b175''q44a890''o45h57''h45l187':false=('j47g753'=0;cPt='o45h57'[1];for pt in'o45h57'do ('g48q298'=distance pt'q44a890';if'g48q298'>'j47g753'then (cPt=pt;'j47g753'='g48q298'));res=(if'h45l187'then #(cPt,'j47g753') else cPt));fn'o45j199''k45a210''h45d153':1.0=('r48k309'=#();'o48l320'=#();for arr in'k45a210'do (if arr.count>1 then ('o48a332'=#(arr[1], arr[2]);'l48d342'=0;for pt in arr do ('q48o352'='h45b175'pt arr'h45l187':true;fPt='q48o352'[1];'k48j363'='q48o352'[2];if'k48j363'>'l48d342'then ('l48d342'='k48j363';'o48a332'=#(pt, fPt)));if (distance'o48a332'[1]'o48a332'[2])>'h45d153'then ('c48h374'=#();'n48q384'=#();for p in arr do (if (distance p'o48a332'[1])<=(distance p'o48a332'[2]) then (appendIfUnique'c48h374'p) else (appendIfUnique'n48q384'p));append'o48l320''c48h374';append'o48l320''n48q384') else (append'o48l320'arr)) else (append'o48l320'arr));'o48l320');fn'h45d222''d45o141''h45d153':0.3=('k45a210'='l45l130''d45o141''h45d153':'h45d153';'k45a210'='o45j199''k45a210''h45d153':('h45d153'*3.0);'o48o396'=#();for arr in'k45a210'do (pt=[0,0,0];'d47n432'=arr.count;for n=1 to'd47n432'do (pt+=arr[n]);append'o48o396'(pt/'d47n432'));'o48o396');fn'l45l234''d45o141'=(pt=[0,0,0];'d47n432'='d45o141'.count;for n=1 to'd47n432'do (pt+='d45o141'[n]);pt2=pt/'d47n432');fn'a45n245''q45g256'=('a48c407'=deepCopy'q45g256';'d47n432'='q45g256'.count;'q48c419'=(for arr in'q45g256'collect (arr as string)) as array;'c48n429'=#();'j48j440'=#();for n=1 to'd47n432'do (if (findItem'j48j440''q48c419'[n])==0 then (append'j48j440''q48c419'[n]) else (append'c48n429'n));'h48q451'='c48n429'.count;for a='h48q451'to 1 by-1 do (deleteItem'a48c407''c48n429'[a]);'a48c407');fn'o45g270'pA pB pC pD=(local a=pB-pA;local b=pD-pC;local c=pC-pA;local'q48h462'=cross a b;local'c48c472'=cross c b;pA+(a*((dot'c48c472''q48h462')/((length'q48h462')^2))));fn'b45l282'pA pB pC=(local vAB=pB-pA;local vAC=pC-pA;(length (cross vAB vAC))/(length vAB));fn'q45o294'pA pB pC pD=(p1='o45g270'pA pB pC pD;'n48o483'='b45l282'pC pD p1;if'n48o483'>0.001 then return false;p1);fn'b45b307'pA pB pC pD=('o48r493'=false;'o48d505'='q45o294'pA pB pC pD;if'o48d505'!=false then ('a48q514'=pA-'o48d505';'g48a523'=pB-'o48d505';'o48r493'=(if (distance (normalize'a48q514') (normalize'g48a523'))<0.001 then false else true)) else ('o48r493'=false);'o48r493');fn'j45r320''q45q118''b45a332''n45g343':1=('h45d153'=0.03;'k48b189'=#();'k48b532'=#();'l48l542'=#();for arr in'b45a332'do ('l48q551'=arr.count;'b48a562'=(for n=1 to'l48q551'collect'q45q118'[arr[n]]) as array;'n48b572'='j45j34''b48a562';if'l48q551'>1 then ('o45r367'='q45q118'[arr[1]][1][1];'k45r379'='q45q118'[arr[1]][1][2];'o45k390'='q45q118'[arr[1]][2][1];'c45r402'='q45q118'[arr[1]][2][2];'a48k582'=(int ('l48q551'*1.0/2))+1.0;pA1='q45q118'[arr[1]][1][3];pB1='q45q118'[arr['a48k582']][1][3];pC1='q45q118'[arr[arr.count]][1][3];pA2='q45q118'[arr[1]][2][3];pB2='q45q118'[arr['a48k582']][2][3];pC2='q45q118'[arr[arr.count]][2][3];'h48d590'='h44k588''o45r367''k45r379'pA1 pC1;'c48q601'='h44k588''o45k390''c45r402'pA2 pC2;'o48l612'=distance pA1 pC1;'a48g623'=distance pA2 pC2;'o48r493'='b45b307'pA1 pB1 pA2 pB2;if'o48r493'or (distance pA1 pA2)<'h45d153'or (distance pB1 pB2)<'h45d153'or (distance pC1 pC2)<'h45d153'then (if ('h48d590'-'o48l612')<('o48l612'*1.2) and ('c48q601'-'a48g623')<('a48g623'*1.2) then (if (('b45b307'pA1 pB1 pA2 pB2) or (distance pA1 pA2)<'h45d153') and (('b45b307'pB1 pC1 pB2 pC2) or (distance pC1 pC2)<'h45d153') then ('b48c633'=true) else if ('b45b307'pA1 pC1 pA2 pC2) then ('b48c633'=false) else ('b48c633'=false);if'b48c633'==false then (append'k48b532'('l45l234''n48b572')) else (if'l48q551'==2 then (join'k48b532''n48b572') else (join'k48b532'#('n48b572'[1],'n48b572'['l48q551']);'c48o643'=(for n=2 to ('l48q551'-1) collect arr[n]) as array;join'l48l542''c48o643'))) else (join'k48b532'('h45d222''n48b572''h45d153':('n45g343'*0.5)))) else (join'l48l542'arr)) else (join'k48b532''n48b572'));'d48q655'='q45q118'.count;'q45q118'=(for i=1 to'd48q655'where (findItem'l48l542'i)==0 collect'q45q118'[i]) as array;'j48h665'=#();'n48b572'='j45j34''q45q118';for pt in'n48b572'do (if (findItem'k48b532'pt)==0 then (append'j48h665'('c45r165'pt'k48b532')) else (append'j48h665'pt));'d48q655'='q45q118'.count;for n=1 to'd48q655'do (if (findItem'n48b572''j48h665'[n])==0 then ('q45q118'[n][1][3]='j48h665'[n];'q45q118'[n][2][3]='j48h665'[n]));'k48b189'='a45n245''q45q118');fn'b45j356''o45r367''k45r379''o45k390''c45r402''r45n414''n45r425':#()'n45g343':1=('c45o22'=#();'b45a332'=#();'d48a675'='r45n414';'j48q686'='r45n414'*6;if'n45r425'.count>0 then'o45h57'='n45r425'else'o45h57'='b44k804''o45r367''k45r379''r45n414';'a48b696'='o45h57'.count;for p=1 to'a48b696'do ('q44a890'='l44c962''o45k390''c45r402''o45h57'[p];'g48q298'=distance'o45h57'[p]'q44a890';'d48k159'='c45o22'.count;if'g48q298'<'r45n414'then (if'd48k159'>0 then ('n48q706'='c45o22'['d48k159'][2][3];'h48d590'='h44k588''o45r367''k45r379''n48q706''o45h57'[p];'c48q601'='h44k588''o45k390''c45r402''n48q706''q44a890';if ('h48d590'>'d48a675'or'c48q601'>'d48a675') then ('b48g716'='k44q877''o45r367''k45r379''o45h57'[p] ('r45n414'*3);'a44a927'='b48g716'[1];'g48l727'='k44q877''o45k390''c45r402''q44a890'('r45n414'*3);'d44d939'='g48l727'[1];'h48g738'='q44q916''a44a927''d44d939';if (distance'h48g738'[1]'h48g738'[2])>0.0001 and (distance'h48g738'[2]'n48q706')>('n45g343'/3) then (append'c45o22'#(#('o45r367','k45r379','h48g738'[1]),#('o45k390','c45r402','h48g738'[2]));'b48n748'='h44k588''o45r367''k45r379''n48q706''h48g738'[1];'q48l758'='h44k588''o45k390''c45r402''n48q706''h48g738'[2];if'b48n748'<'j48q686'or'q48l758'<'j48q686'then (if'b45a332'.count==0 then ('k48j769'=99999.9) else ('n48q780'='b45a332'['b45a332'.count];'a48l790'='n48q780'['n48q780'.count];'b48d799'='j45j34'#('c45o22'['a48l790']);'b48d799'='b48d799'[1];'k48j769'='h44k588''o45k390''c45r402''b48d799''h48g738'[2]);if'k48j769'>'j48q686'then (append'b45a332'#();append'b45a332'['b45a332'.count] ('c45o22'.count-1);append'b45a332'['b45a332'.count]'c45o22'.count) else (append'b45a332'['b45a332'.count] ('c45o22'.count))) else (append'b45a332'#('c45o22'.count))))) else ('b48g716'='k44q877''o45r367''k45r379''o45h57'[p] ('r45n414'*3);'a44a927'='b48g716'[1];'g48l727'='k44q877''o45k390''c45r402''q44a890'('r45n414'*3);'d44d939'='g48l727'[1];'h48g738'='q44q916''a44a927''d44d939';if (distance'h48g738'[1]'h48g738'[2])>0.0001 then (append'c45o22'#(#('o45r367','k45r379','h48g738'[1]),#('o45k390','c45r402','h48g738'[2]));append'b45a332'#('c45o22'.count)))));'k48n810'=(for arr in'b45a332'where arr.count>1 collect arr) as array;if'k48n810'.count>0 then ('c45o22'='j45r320''c45o22''b45a332''n45g343':'n45g343');'c45o22');fn'l45h438''o44n536''r45n414''o45r450':false'g45n462':false'j45j475':true'q45o70':1.0'd45g488':[255,0,0]'n45g343':1'a45g500':false=('c45o22'=#();'o46g230'='o44n536'.count;'o48g821'=(for shp in'o44n536'collect (copy shp)) as array;'q48b832'=#();for shp in'o48g821'do (setKnotPoint shp 1 1 ((getKnotPoint shp 1 1)+[0.01,0.01,0.01]);updateShape shp);for a=1 to ('o46g230'-1) do ('o48o842'='o48g821'[a];'o45r367'='o44n536'[a];for b=(a+1) to'o46g230'do ('r48d854'='o48g821'[b];'o45k390'='o44n536'[b];if (intersects'o48o842''r48d854') then ('g48b865'=getKnotPoint'o48o842'1 (numKnots'o48o842'1);'a48g875'=getKnotPoint'r48d854'1 1;if (distance'g48b865''a48g875')>('r45n414'*2) then (append'q48b832'#('o45r367','o45k390')))));delete'o48g821';'r47g637'=0;'n48n884'='q48b832'.count;for b=1 to'n48n884'do (for c=1 to (numsplines'q48b832'[b][1]) do (for d=1 to (numsplines'q48b832'[b][2]) do ('r47g637'+=1)));'c44a446'=0;'a44r459'='r47g637';for arr in'q48b832'do ('o45r367'=arr[1];'o45k390'=arr[2];'a48d894'=numsplines'o45r367';for c=1 to'a48d894'do ('c48k905'=numsplines'o45k390';for d=1 to'c48k905'do ('q45q118'='b45j356''o45r367'c'o45k390'd'r45n414''n45g343':'n45g343';join'c45o22''q45q118';'c44a446'+=1.0;'n44n434''c44a446''a44r459')));if'o45r450'then'c45o22'='c45q106''c45o22';if'g45n462'then (if'c45o22'.count>0 then'k45l9''c45o22');if'j45j475'then ('l48a139'='j45j34''c45o22';if'l48a139'.count>0 then (if'a45g500'==false then'l48a139'='h45d222''l48a139''h45d153':('n45g343'*0.5);'k48b149'='c45a45''l48a139''q45o70''j45k82':'d45g488';join'r44g90''k48b149'));'c45o22');fn'c45h513''o44n536'=(for shp in'o44n536'do ('g47h648'=numSplines shp;for s=1 to'g47h648'do (if (isClosed shp s)==false then return false));true);fn'n45g525''o44n536'=(for shp in'o44n536'do ('g47h648'=numSplines shp;for s=1 to'g47h648'do (if (isClosed shp s) then return false));true);fn'n45o537'shp'j45g548'=('g47h648'=numSplines shp;for spl=1 to'g47h648'do ('h44n692'='a44l644'shp spl;id=0;for ang in'h44n692'do (id+=1;if id>1 and id<numknots shp spl then (if ang<'j45g548'and numknots shp spl>2  then (deleteknot shp spl id;id-=1)) else if id==numknots shp spl then (if (isClosed shp spl) then (if ang<'j45g548'and numknots shp spl>2  then deleteknot shp spl id))));updateshape shp);fn'n45k561'shp spl'q44a890'=('j48h915'=undefined;'r48j924'=99999.9;'h47q785'=numKnots shp spl;for n=1 to'h47q785'do (kn=getKnotPoint shp spl n;'a48j96'=distance kn'q44a890';if'a48j96'<'r48j924'then ('j48h915'=n;'r48j924'='a48j96'));'j48h915');fn'k45h572''o44n536''d45o141'=(for shp in'o44n536'do ('g47h648'=numsplines shp;for spl=1 to'g47h648'do ('b48c933'=#();for pt in'd45o141'do ('h48h943'='n45k561'shp spl pt;if (distance pt (getKnotPoint shp spl'h48h943'))<0.01 then append'b48c933''h48h943');'d48g953'='b48c933'.count;for k='d48g953'to 1 by-1 do (deleteknot shp spl'b48c933'[k]));updateShape shp));fn'k45o584''g45q594''r45c606':true=('d48a962'='g45q594'.count;'a48l971'=#();for arr in'g45q594'do (appendIfUnique'a48l971'arr[1];appendIfUnique'a48l971'arr[2]);sort'a48l971';'l48b981'='a48l971'.count;'a48c407'=#();if'r45c606'then (for n=1 to'l48b981'do ('k48c289'=(if n<'l48b981'then (n+1) else 1);append'a48c407'#('a48l971'[n],'a48l971'['k48c289']))) else (for n=1 to ('l48b981'-1) do (append'a48c407'#('a48l971'[n],'a48l971'[(n+1)])));'a48c407');fn'c45d618''b44q754''h45l629':false=('j44j791'=#();'c47k857'=getUserPropBuffer'b44q754';'g47h648'=numsplines'b44q754';for spl=1 to'g47h648'do (ns=splineShape prefix:'b44q754'.name;addnewspline ns;'h47q785'=numKnots'b44q754'spl;for k=1 to'h47q785'do ('r47c906'=getKnotPoint'b44q754'spl k;'h48d992'=(if (isClosed'b44q754'spl)==false and k=='h47q785'then (k-1) else k);'c47n916'=getSegmentType'b44q754'spl'h48d992';'n47b926'=getKnotType'b44q754'spl k;if'n47b926'== #bezier or'n47b926'== #bezierCorner then (addknot ns 1'n47b926''c47n916''r47c906'(getInVec'b44q754'spl k) (getOutVec'b44q754'spl k)) else (addknot ns 1'n47b926''c47n916''r47c906'));if (isClosed'b44q754'spl) then close ns 1;updateshape ns;setUserPropBuffer ns'c47k857';append'j44j791'ns);for sp in'j44j791'do sp.pivot='b44q754'.pivot;if'h45l629'==false then delete'b44q754';'j44j791');fn'h45k640'shp spl'o45d653'=('j44j791'=#();'a47h659'=0;'b49k3'=numKnots shp spl;'c49a12'='o45d653'[1][1];for arr in'o45d653'do (ns=splineShape prefix:shp.name;addnewspline ns;'h49g23'=arr[1];'o49o33'=arr[2];'b49o44'=(if'h49g23'<'o49o33'then ('o49o33'-'h49g23'+1) else (('b49k3'-'h49g23'+1)+'o49o33'));'n49d53'='h49g23';'g49j63'=1;do ('r47c906'=getKnotPoint shp spl'n49d53';'c47n916'=getSegmentType shp spl 1;'n47b926'=getKnotType shp spl'n49d53';if'n47b926'== #bezier or'n47b926'== #bezierCorner then (addknot ns 1'n47b926''c47n916''r47c906'(getInVec shp spl'n49d53') (getOutVec shp spl'n49d53')) else (addknot ns 1'n47b926''c47n916''r47c906');if'n49d53'<'b49k3'then'n49d53'+=1 else'n49d53'=1;'g49j63'+=1) while ('g49j63'<='b49o44');updateshape ns;append'j44j791'ns);'j44j791');fn'r45j664'shp'd45l674'=('j44j791'=#();for idx in'd45l674'do (ns=splineShape prefix:shp.name;addnewspline ns;'h47q785'=numKnots shp idx;for k=1 to'h47q785'do ('r47c906'=getKnotPoint shp idx k;'h48d992'=(if (isClosed shp idx)==false and k=='h47q785'then (k-1) else k);'c47n916'=getSegmentType shp idx'h48d992';'n47b926'=getKnotType shp idx k;if'n47b926'== #bezier or'n47b926'== #bezierCorner then (addknot ns 1'n47b926''c47n916''r47c906'(getInVec shp idx k) (getOutVec shp idx k)) else (addknot ns 1'n47b926''c47n916''r47c906'));if (isClosed shp idx) then close ns 1;updateshape ns;append'j44j791'ns);for sp in'j44j791'do sp.pivot=shp.pivot;'j44j791');fn'n45n686''q45q118'=('j44j791'=#();for arr in'q45q118'do (shp=arr[1];'l49r74'=getUserProp shp'b41h430';'d49o84'=arr.count;for b=2 to'd49o84'do (spl=arr[b][1];'b49o95'=arr[b].count;'o45h57'=(for p=2 to'b49o95'collect arr[b][p]) as array;'a48b696'='o45h57'.count;if (isClosed shp spl) then ('o45d653'=#();for pt=1 to'a48b696'do (kn1=('n45k561'shp spl'o45h57'[pt]);'l49a106'=(if pt<'a48b696'then (pt+1) else 1);kn2=('n45k561'shp spl'o45h57'['l49a106']);append'o45d653'#(kn1, kn2));'o45d653'=(for arr in'o45d653'where (arr[1]!=arr[2]) collect arr);if'o45d653'.count>0 then ('o45d653'='k45o584''o45d653''r45c606':true;'l49o117'='h45k640'shp spl'o45d653';if'l49r74'!=undefined then (for part in'l49o117'do setUserProp part'b41h430''l49r74');for part in'l49o117'do part.pivot=shp.pivot;append'j44j791''l49o117')) else ('o45d653'=#();for pt=0 to'a48b696'do (if pt==0 then kn1=1 else kn1=('n45k561'shp spl'o45h57'[pt]);if pt<'a48b696'then kn2=('n45k561'shp spl'o45h57'[(pt+1)]) else kn2=(numKnots shp spl);append'o45d653'#(kn1, kn2));'o45d653'='k45o584''o45d653''r45c606':false;'l49o117'='h45k640'shp spl'o45d653';if'l49r74'!=undefined then (for part in'l49o117'do setUserProp part'b41h430''l49r74');for part in'l49o117'do part.pivot=shp.pivot;append'j44j791''l49o117')));'j44j791');fn'a45k698''h44a484''d45h710''j45l721':true=('o49d127'=(for obj in objects where (findItem'h44a484'obj)==0 and obj.isHidden==false collect obj) as array;hide'o49d127';with redraw on ('h49j138'=section transform:'d45h710';redrawViews();convertToSplineShape'h49j138';hide'h49j138');for spl=1 to'h49j138'.numSplines do (setKnotSelection'h49j138'spl (for k=1 to (numKnots'h49j138'spl) collect k));weldSpline'h49j138'0.001;updateShape'h49j138';for spl=1 to'h49j138'.numSplines do (for k=1 to (numKnots'h49j138'spl) do setKnotType'h49j138'spl k #corner);if'j45l721'then'n45o537''h49j138'1.0;unhide'o49d127';'h49j138');fn'c45k733'shp=('k49k149'=0;'o49h159'=1;'g47h648'=numsplines shp;for s=1 to'g47h648'do ('d47g680'=curveLength shp s;if'd47g680'>'k49k149'then ('k49k149'='d47g680';'o49h159'=s));'o49h159');fn'n45c744''o44n536'=('q49n169'=99999.9;'h49c177'='o44n536'[1];for shp in'o44n536'do ('d47g680'=curveLength shp 1;if'd47g680'<'q49n169'then ('q49n169'='d47g680';'h49c177'=shp));'h49c177');fn'n45l754'shp=('q49n169'=99999.9;'q49n188'=1;'g47h648'=numsplines shp;for s=1 to'g47h648'do ('d47g680'=curveLength shp s;if'd47g680'<'q49n169'then ('q49n169'='d47g680';'q49n188'=s));'q49n188');fn'r45r765'shp'j45k776'=('d45l674'=#();'g47h648'=numsplines shp;for s=1 to'g47h648'do (if (curveLength shp s)<='j45k776'then append'd45l674's);'d45l674');fn'c45c787''o44n536'=('n45g343'=1.0;for shp in'o44n536'do ('l46k42'='h44d511'shp;arr=#('l46k42'.x,'l46k42'.y,'l46k42'.z);sort arr;'l46k42'=arr[arr.count];'g49k198'=(log10 ('l46k42'+1.0))*0.2;if'g49k198'<'n45g343'then'n45g343'='g49k198');'n45g343');fn'j45j797''o44n536'=('r49k208'=1.0;for shp in'o44n536'do ('o49d217'=curveLength shp ('n45l754'shp);'c49g226'=(log10 ('o49d217'+1.0))*0.2;if'c49g226'<'r49k208'then'r49k208'='c49g226');'r49k208');fn'h45h808'shp spl'o45j820''r45l831':10'r45b843':0.1=('k49a236'=false;'d47g680'=curveLength shp spl;'j49k246'=0;for n=0 to ('r45l831'-1) do (pt1=interpCurve3D shp spl (1.0/('r45l831'-1)*n);pt2='a44c974''o45j820'pt1;if (distance pt1 pt2)<='r45b843'then'j49k246'+=1);'k49a236'=(if'j49k246'>=('r45l831'-2) then true else false));fn'h45n855'shp spl=('q49g257'=('l44c962'shp spl [(shp.min.x-99999.9),shp.center.y,shp.center.z]).x;'o49a265'=('l44c962'shp spl [shp.center.x,(shp.min.y-99999.9),shp.center.z]).y;'c49a274'=('l44c962'shp spl [shp.center.x,shp.center.y,(shp.min.z-99999.9)]).z;'a49a283'=('l44c962'shp spl [(shp.max.x+99999.9),shp.center.y,shp.center.z]).x;'j49d293'=('l44c962'shp spl [shp.center.x,(shp.max.y+99999.9),shp.center.z]).y;'a49q301'=('l44c962'shp spl [shp.center.x,shp.center.y,(shp.max.z+99999.9)]).z;'c49j310'=#(['q49g257','o49a265','c49a274'], ['a49a283','j49d293','a49q301']));fn'h45n866'shp=('o49a320'=#();'g47h648'=numsplines shp;for spl=1 to'g47h648'do (append'o49a320'('h45n855'shp spl));'o49a320');fn'g45r877''h45o887''k45n898'=('o48r493'=false;'o49h330'=false;'r49b339'=false;'k49d347'=false;'c49a356'='h45o887'[1].x;'h49l366'='h45o887'[1].y;'g49c376'='h45o887'[1].z;'j49o385'='h45o887'[2].x;'g49c395'='h45o887'[2].y;'g49l405'='h45o887'[2].z;'o49j415'='k45n898'[1].x;'j49j425'='k45n898'[1].y;'g49l433'='k45n898'[1].z;'q49r443'='k45n898'[2].x;'r49r452'='k45n898'[2].y;'q49r462'='k45n898'[2].z;'k49h471'=[((abs(('j49o385'-'c49a356')/2))+'c49a356'), ((abs(('g49c395'-'h49l366')/2))+'h49l366'), ((abs(('g49l405'-'g49c376')/2))+'g49c376')];'b49l481'=[((abs(('q49r443'-'o49j415')/2))+'o49j415'), ((abs(('r49r452'-'j49j425')/2))+'j49j425'), ((abs(('q49r462'-'g49l433')/2))+'g49l433')];if'k49h471'.x<'b49l481'.x then (if'j49o385'>'o49j415'then'o49h330'=true);if'b49l481'.x<'k49h471'.x then (if'q49r443'>'c49a356'then'o49h330'=true);if'k49h471'.y<'b49l481'.y then (if'g49c395'>'j49j425'then'r49b339'=true);if'b49l481'.y<'k49h471'.y then (if'r49r452'>'h49l366'then'r49b339'=true);if'k49h471'.z<'b49l481'.z then (if'g49l405'>'g49l433'then'k49d347'=true);if'b49l481'.z<'k49h471'.z then (if'q49r462'>'g49c376'then'k49d347'=true);if abs ('k49h471'.x-'b49l481'.x)<0.01 then'o49h330'=true;if abs ('k49h471'.y-'b49l481'.y)<0.01 then'r49b339'=true;if abs ('k49h471'.z-'b49l481'.z)<0.01 then'k49d347'=true;if'o49h330'and'r49b339'and'k49d347'then'o48r493'=true;'o48r493');fn'h45q909''d45o141'=('h49q491'=#();'l49a500'=#();'l49l508'=#();for pt in'd45o141'do (append'h49q491'pt.x;append'l49a500'pt.y;append'l49l508'pt.z);sort'h49q491';sort'l49a500';sort'l49l508';'c47l585'='h49q491'['h49q491'.count]-'h49q491'[1];'k49r517'='h49q491'[1]+('h49q491'['h49q491'.count]-'h49q491'[1])/2;'r47o594'='l49a500'['l49a500'.count]-'l49a500'[1];'a49n526'='l49a500'[1]+('l49a500'['l49a500'.count]-'l49a500'[1])/2;'l47c605'='l49l508'['l49l508'.count]-'l49l508'[1];'a49r536'='l49l508'[1]+('l49l508'['l49l508'.count]-'l49l508'[1])/2;'k49c546'=['c47l585','r47o594','l47c605'];'g49g555'=['k49r517','a49n526','a49r536'];return #('k49c546','g49g555'));fn'o45b919''d45a930'=('d49b565'=('h45q909''d45a930')[1];if ('d49b565'.x<'d49b565'.y and'd49b565'.x<'d49b565'.z) then ('k45k952'="x") else if ('d49b565'.y<'d49b565'.x and'd49b565'.y<'d49b565'.z) then ('k45k952'="y") else ('k45k952'="z");'k45k952');fn'd45d941'shp'k45k952':undefined=('d49a575'=nodeGetBoundingBox shp (matrix3 1);if'k45k952'==undefined then'k45k952'='o45b919''d49a575';'b49j584'=case'k45k952'of ("x": #((point2'd49a575'[1][2]'d49a575'[1][3]), (point2'd49a575'[2][2]'d49a575'[2][3]));"y": #((point2'd49a575'[1][1]'d49a575'[1][3]), (point2'd49a575'[2][1]'d49a575'[2][3]));"z": #((point2'd49a575'[1][1]'d49a575'[1][2]), (point2'd49a575'[2][1]'d49a575'[2][2])));;'b49j584');fn'o45j963''o44n536'=('b49j593'=#();for shp in'o44n536'do ('a49h603'='d45d941'shp;'c47l585'='a49h603'[2].x-'a49h603'[1].x;'r47o594'='a49h603'[2].y-'a49h603'[1].y;'o49l613'=#('c47l585','r47o594');sort'o49l613';'l46k42'='o49l613'[2];append'b49j593''l46k42');sort'b49j593';#('b49j593'[1],'b49j593'['b49j593'.count]));fn'q45r974''h44a484'=('b49a623'=(for obj in'h44a484'collect obj.min.x) as array;sort'b49a623';'q49g257'='b49a623'[1];'g49l632'=(for obj in'h44a484'collect obj.min.y) as array;sort'g49l632';'o49a265'='g49l632'[1];'j49b640'=(for obj in'h44a484'collect obj.min.z) as array;sort'j49b640';'c49a274'='j49b640'[1];'r49j649'=(for obj in'h44a484'collect obj.max.x) as array;sort'r49j649';'a49a283'='r49j649'['r49j649'.count];'k49a657'=(for obj in'h44a484'collect obj.max.y) as array;sort'k49a657';'j49d293'='k49a657'['k49a657'.count];'b49j666'=(for obj in'h44a484'collect obj.max.z) as array;sort'b49j666';'a49q301'='b49j666'['b49j666'.count];'a49h603'=#(['q49g257','o49a265','c49a274'], ['a49a283','j49d293','a49q301']));fn'k45d985''h44a484'=('d49j675'='q45r974''h44a484';'c49k684'='d49j675'[2].x-'d49j675'[1].x;'d49g692'='d49j675'[2].y-'d49j675'[1].y;'n49h702'='d49j675'[2].z-'d49j675'[1].z;#('c49k684','d49g692','n49h702'));fn'c45j996''o44n536'=('g49k711'=0;'l49a721'=0;'b49g732'=0;for shp in'o44n536'do ('a49h603'=nodeGetBoundingBox shp (matrix3 1);'c47l585'=abs ('a49h603'[2].x-'a49h603'[1].x);'r47o594'=abs ('a49h603'[2].y-'a49h603'[1].y);'l47c605'=abs ('a49h603'[2].z-'a49h603'[1].z);if'c47l585'<'r47o594'and'c47l585'<'l47c605'then'g49k711'+=1 else if'r47o594'<'c47l585'and'r47o594'<'l47c605'then'l49a721'+=1 else'b49g732'+=1);'k45k952'=(if'g49k711'>'l49a721'and'g49k711'>'b49g732'then "x" else if'l49a721'>'g49k711'and'l49a721'>'b49g732'then "y" else "z"));fn'l46o6''h44a484''j46n18''o46d30':undefined'l46k42':undefined=(if'o46d30'!=undefined then (if'l46k42'==undefined then ('k49c546'='k45d985''h44a484';sort'k49c546';'l46k42'='k49c546'['k49c546'.count]);'j46n18'='o46d30'/'l46k42');'g49n742'=group'h44a484';'g49n742'.scale=['j46n18','j46n18','j46n18'];ungroup'g49n742');fn'n46j52'shp'b46a63'=(for s=1 to (numSplines shp) do (for k=1 to (numKnots shp s) do (knt=getKnotPoint shp s k;'g49k755'=getInVec shp s k;'r49q765'=getOutVec shp s k;case'b46a63'of ("x": knt.x='g49k755'.x='r49q765'.x=shp.pos.x;"y": knt.y='g49k755'.y='r49q765'.y=shp.pos.y;"z": knt.z='g49k755'.z='r49q765'.z=shp.pos.z);;setInVec shp s k'g49k755';setOutVec shp s k'r49q765';setKnotPoint shp s k knt));updateshape shp);fn'r46j75'shp=('j49d776'='h44d511'shp;'k45k952'=undefined;if ('j49d776'.x<'j49d776'.y and'j49d776'.x<'j49d776'.z) then ('k45k952'="x") else if ('j49d776'.y<'j49d776'.x and'j49d776'.y<'j49d776'.z) then ('k45k952'="y") else ('k45k952'="z");'k45k952');fn'l46d86'shp'b46a63'=('j49d776'='h44d511'shp;if'b46a63'=="x" then (if'j49d776'.y<'j49d776'.x and'j49d776'.y<'j49d776'.z then (rotate shp (eulerangles 0 0 (-90))) else if'j49d776'.z<'j49d776'.x and'j49d776'.z<'j49d776'.y then (rotate shp (eulerangles 90 0 (-90)))) else if'b46a63'=="y" then (if'j49d776'.x<'j49d776'.y and'j49d776'.x<'j49d776'.z then (rotate shp (eulerangles 0 0 90)) else if'j49d776'.z<'j49d776'.x and'j49d776'.z<'j49d776'.y then (rotate shp (eulerangles 90 0 0))) else if'b46a63'=="z" then (if'j49d776'.x<'j49d776'.y and'j49d776'.x<'j49d776'.z then (rotate shp (eulerangles (-90) 90 0)) else if'j49d776'.y<'j49d776'.x and'j49d776'.y<'j49d776'.z then (rotate shp (eulerangles (-90) 0 0))));fn'o46q97'shp'k45k952':undefined=(if'k45k952'==undefined then'k45k952'='r46j75'shp;'l46d86'shp "z";resetXForm shp;convertToSplineShape shp;'l46d86'shp'k45k952');fn'g46a108''q45q118'=('c45o22'=#();'o44n536'=#();'d48q655'='q45q118'.count;for n=1 to'd48q655'do (shp='q45q118'[n][1];spl='q45q118'[n][2];pt='q45q118'[n][3];'a49c786'=findItem'o44n536'shp;if'a49c786'==0 then (append'c45o22'#(shp, #(spl, pt))) else ('g49o797'='c45o22'['a49c786'];'h49o807'=(for a=1 to'g49o797'.count where'g49o797'[a][1]==spl collect a) as array;'h49o807'=(if'h49o807'.count==0 then 0 else'h49o807'[1]);if'h49o807'==0 then (append'c45o22'['a49c786'] #(spl, pt)) else (append'c45o22'['a49c786']['h49o807'] pt));appendIfUnique'o44n536'shp);'c45o22');fn'c46o120''q45q118'=('c45o22'=#();'o44n536'=#();'d48q655'='q45q118'.count;for n=1 to'd48q655'do ('d47n432'='q45q118'[n].count;for m=1 to'd47n432'do (shp='q45q118'[n][m][1];spl='q45q118'[n][m][2];pt='q45q118'[n][m][3];'a49c786'=findItem'o44n536'shp;if'a49c786'==0 then (append'c45o22'#(shp, #(spl, pt))) else ('g49o797'='c45o22'['a49c786'];'h49o807'=(for a=1 to'g49o797'.count where'g49o797'[a][1]==spl collect a) as array;'h49o807'=(if'h49o807'.count==0 then 0 else'h49o807'[1]);if'h49o807'==0 then (append'c45o22'['a49c786'] #(spl, pt)) else (append'c45o22'['a49c786']['h49o807'] pt));appendIfUnique'o44n536'shp));'c45o22');fn'r46h131''q45q118'=('j44j791'=#();'o46g230'=0;for arr in'q45q118'do (shp=arr[1];'o46g230'+=1;'d49o84'=arr.count;'q49q817'=#();for b=2 to'd49o84'do (spl=arr[b][1];appendIfUnique'q49q817'spl);'g47h648'=numSplines shp;'q49n827'=(for s=1 to'g47h648'where (findItem'q49q817's)==0 collect s) as array;'h49k837'='r45j664'shp'q49n827';'l49r74'=getUserProp shp'b41h430';if'l49r74'!=undefined then (for s in'h49k837'do (setUserProp s'b41h430''l49r74'));join'j44j791''h49k837');'j44j791');fn'n46c142''j44j791''k46j153':false=('b49d846'=(if'k46j153'then 0.1 else (-1));if'j44j791'.count>1 then ('g49l855'='j44j791'[1];'q49j866'=(for s=2 to'j44j791'.count collect'j44j791'[s]) as array;for s in'q49j866'do (addAndWeld'g49l855's'b49d846');updateShape'g49l855';'o49r876'='g49l855') else ('o49r876'='j44j791'[1]);'o49r876');fn'd46k164''o44n536'=('d49g884'=#();'q49a894'=#();'o49k903'='o44n536'.count;for s=1 to'o49k903'-1 do ('n49j914'=#();for w=s+1 to'o49k903'do ('o45r367'='o44n536'[s];'o45k390'='o44n536'[w];if ('o45r367'.min.x<='o45k390'.min.x and'o45r367'.min.y<='o45k390'.min.y and'o45r367'.min.z<='o45k390'.min.z) and ('o45r367'.max.x>='o45k390'.max.x and'o45r367'.max.y>='o45k390'.max.y and'o45r367'.max.z>='o45k390'.max.z) then (if (findItem'q49a894''o45r367')==0 then appendIfUnique'n49j914''o45r367';if (findItem'q49a894''o45k390')==0 then appendIfUnique'n49j914''o45k390';appendIfUnique'q49a894''o45r367';appendIfUnique'q49a894''o45k390') else if ('o45k390'.min.x<='o45r367'.min.x and'o45k390'.min.y<='o45r367'.min.y and'o45k390'.min.z<='o45r367'.min.z) and ('o45k390'.max.x>='o45r367'.max.x and'o45k390'.max.y>='o45r367'.max.y and'o45k390'.max.z>='o45r367'.max.z) then (if (findItem'q49a894''o45r367')==0 then appendIfUnique'n49j914''o45r367';if (findItem'q49a894''o45k390')==0 then appendIfUnique'n49j914''o45k390';appendIfUnique'q49a894''o45r367';appendIfUnique'q49a894''o45k390'));if'n49j914'.count>0 then append'd49g884''n49j914');'d49g884');fn'j46q174'shp'j45g548'=('g47h648'=numsplines shp;for spl=1 to'g47h648'do (setKnotSelection shp spl (for k=1 to (numKnots shp spl) collect k) keep:true);weldSpline shp'j45g548';updateShape shp);fn'r46q184''q45q118''o44n536'=('o46g230'='o44n536'.count;'r49k924'=(for arr in'q45q118'collect arr[1]) as array;'l49n933'=(for n=1 to'o46g230'where (findItem'r49k924''o44n536'[n])==0 collect'o44n536'[n]) as array;'l49n933');fn'k46q196''o44n536''q45q118''a46o207':true=('l49n933'='r46q184''q45q118''o44n536';join'l49n933'('r46h131''q45q118');'l49o117'='n45n686''q45q118';for shp in'o44n536'do (if (isValidNode shp) and (findItem'l49n933'shp)==0 then delete shp);if'a46o207'==false then ('d48a962'='l49o117'.count;for arr=1 to'd48a962'do ('l49o117'[arr]=('n46c142''l49o117'[arr])));'k49a943'=#();for arr in'l49o117'do (for shp in arr do appendIfUnique'k49a943'shp);('k49a943'+'l49n933'));fn'h46l218''j44j791''o46g230'=('g49j953'=#();for id=1 to'o46g230'do ('c49j963'=(for shp in'j44j791'where (getUserprop shp'b41h430')==id collect shp) as array;if'c49j963'.count>1 then ('o49g972'='n46c142''c49j963''k46j153':false;append'g49j953''o49g972';'j44j791'=(for shp in'j44j791'where (isValidNode shp) collect shp) as array) else if'c49j963'.count==1 then (append'g49j953''c49j963'[1]));'g49j953');fn'q46o244'obj'h46c255':'r41g513'=('g49r982'=(for ob in geometry collect ob) as array;if (convertToPoly obj)!=undefined then (while polyOp.getNumFaces obj!=0 do ('l49r992'=polyOp.getElementsUsingFace obj #{1};polyOp.detachFaces obj'l49r992'asNode:true name:(uniqueName'h46c255'));delete obj);'d46d538'=(for ob in geometry where (findItem'g49r982'ob)==0 collect ob) as array);fn'o46c266'obj'h46c255':'r41g513'=('d46d538'=#();if (convertToMesh obj)!=undefined then (while (getNumFaces obj)!=0 do ('l49r992'=meshOp.getElementsUsingFace obj #{1};'k50b2'=meshop.detachFaces obj'l49r992'delete:true asMesh:true;update obj;'q50d11'=copy obj;'q50d11'.name=uniqueName'h46c255';'q50d11'.mesh='k50b2';update'q50d11';append'd46d538''q50d11');delete obj);'d46d538');fn'l46g279'shp spl kn:#end'o46c290':1.0=(if (isClosed shp spl)==false then ('h47q785'=numKnots shp spl;kn=(if kn==#start then 1 else'h47q785');'d50d21'=getKnotPoint shp spl kn;'h48l16'=nearestPathParam shp spl'd50d21'steps:5000;'r50d30'=pathToLengthParam shp spl'h48l16'steps:5000;tn=tangentCurve3D shp spl'r50d30';if kn==1 then'o46c290'*=(-1);'q50c40'=tn*'o46c290'+'d50d21';if kn==1 then ('d50o51'=getOutVec shp spl 1;refineSegment shp spl 1 0.0;setKnotPoint shp spl 1'q50c40';setKnotType shp spl 1 #corner;setOutVec shp spl 2'd50o51') else (addKnot shp spl #corner #curve'q50c40');updateShape shp));fn'h46g301''o44n536''r45l831':10'r45b843':0.1'c46j312':true=('k47o956'='o44n536'.count;'j50o60'=#();for s=1 to ('k47o956'-1) do (if (findItem'j50o60''o44n536'[s])==0 then (for n=(s+1) to'k47o956'do (if (findItem'j50o60''o44n536'[n])==0 then ('j50o71'=curveLength'o44n536'[s] 1;'h50a81'=curveLength'o44n536'[n] 1;if'j50o71'<'h50a81'then ('o45r367'='o44n536'[s];'o45k390'='o44n536'[n]) else ('o45r367'='o44n536'[n];'o45k390'='o44n536'[s]);'k49a236'='h45h808''o45r367'1'o45k390''r45l831':'r45l831''r45b843':'r45b843';if'k49a236'then (if'c46j312'then (appendIfUnique'j50o60''o45r367') else (appendIfUnique'j50o60''o45k390'))))));'j50o60');fn'c46g323''j46g336'=(for obj in'j46g336'do obj.wirecolor=color (random 0 255) (random 0 255) (random 0 255));rollout'k43j979''o41j263';(local'c50g353';fn'j46h347'obj=SuperClassOf obj == shape;fn'n46h360''o46h371''a46q382':1'k46d394':undefined'r46a406':true'a45g500':false=(if'a46q382'!=3 then'k46d394'=undefined;clearSelection();'k45k952'='c45j996''o46h371';if'r46a406'then (for shp in'o46h371'do (if (isClosed shp 1)==false then (close shp 1;updateShape shp);'n46j52'shp'k45k952';'c46l452'=(if'k45k952'=="x" then 1 else if'k45k952'=="y" then 2 else 3);'o50d91'='o46h371'[1].pos['c46l452'];'q50c40'=shp.pos;'q50c40'['c46l452']='o50d91';shp.pos='q50c40'));if ('c45h513''o46h371')==false then (messageBox'o41b555') else ('r47g637'='a44d548''o46h371';if'r47g637'>5 then'h44r419'txt:'b41g571';for shp in'o46h371'do'o46q97'shp'k45k952':'k45k952';'n45g343'='c45c787''o46h371';if'a46q382'==3 then ('h50o100'='k46d394'.name;'n50j111'='k46d394'.wirecolor;'n50k122'='k46d394'.material;'o50j132'='k46d394'.pivot);'o44n536'=(for shp in'o46h371'collect (copy shp)) as array;'r50j141'='k44j767''o44n536';for shp in'o44n536'do (shp.adaptive=true;shp.visibility=false;addModifier shp (Extrude amount:0.1 segs:1 capStart:on capEnd:on output:1 mapcoords:off matIDs:off smooth:on));mtx='o44n536'[1].transform;mtx.pos='o44n536'[1].dir*0.01+'o44n536'[1].pos;obj='o44n536'[1];arr=(for n=2 to'o44n536'.count collect'o44n536'[n]) as array;ProBoolean.CreateBooleanObjects obj arr ('a46q382'-1) 2 0;'h49j138'='a45k698'#(obj) mtx;delete obj;'k50c151'='k44j767'#('h49j138');'j50k160'=deepCopy'k50c151';'d50n170'=#();'c50h180'=0.015;for a='k50c151'.count to 1 by-1 do (for b='r50j141'.count to 1 by-1 do (if (distance'k50c151'[a]'r50j141'[b])<'c50h180'then (deleteItem'k50c151'a;exit)));'g47h648'=numSplines'h49j138';for s=1 to'g47h648'do ('h44n692'='a44l644''h49j138's;'k47l936'='h45d94''h49j138's;append'd50n170''k47l936';'o50d190'='k47l936'.count;for c=1 to'o50d190'do (for d='k50c151'.count to 1 by-1 do (if (distance'k50c151'[d]'k47l936'[c])<'c50h180'and'h44n692'[c]<5.0 then (deleteItem'k50c151'd;exit))));if'a45g500'then (for n=1 to'k50c151'.count do (pt=point size:2.0 pos:'k50c151'[n]));'l50j200'='k50c151';'b48a562'=#();for shp in'o46h371'do ('g47h648'=numSplines shp;for spl=1 to'g47h648'do (for pt in'l50j200'do ('a50r209'='l44c962'shp spl pt;if (distance pt'a50r209')<0.2 then ('o44c986'shp spl'q44a890':'a50r209';appendIfUnique'b48a562'#(shp, spl,'a50r209')))));'c45o22'='g46a108''b48a562';'l49o117'='n45n686''c45o22';'b50d218'=#();for arr in'l49o117'do (for shp in arr do (appendIfUnique'b50d218'shp));'l49o117'='b50d218';'l49n933'=#();'n50b228'=#();if'a46q382'!=2 and'h49j138'.numsplines>1 then ('l50q238'=#();for'k47l936'in'd50n170'do (append'l50q238'('h45q909''k47l936'));for shp in'o46h371'do ('j44j791'='c45d618'shp;for s in'j44j791'do ('c50o248'='h45q909'(nodeGetBoundingBox s (matrix3 1));'n50b258'='c50o248'[1];'c50o266'='c50o248'[2];'j50o71'=curveLength s 1;'r50l276'=false;'k47o956'=0;for'o49a320'in'l50q238'do ('k47o956'+=1;'c50a285'='o49a320'[1];'r50k295'='o49a320'[2];'h50a81'=curveLength'h49j138''k47o956';'j50l304'=(0.1*'j50o71'/100.0);if (distance'n50b258''c50a285')<'n45g343'and (distance'c50o266''r50k295')<'n45g343'and (abs('j50o71'-'h50a81')<'j50l304') then ('r50l276'=true;exit));if'r50l276'then appendIfUnique'l49n933's else appendIfUnique'n50b228's)));'b50n314'=#();for kn in'j50k160'do (for b=1 to'r50j141'.count do (if (distance kn'r50j141'[b])<0.05 then (append'b50n314'kn;exit)));'k49a943'=#();'c44a446'=0;'a44r459'='l49o117'.count;for shp in'l49o117'do ('l50j324'=(curveLength shp 1)*0.07;'k49a236'='h45h808'shp 1'h49j138''r45l831':10'r45b843':'l50j324';if'k49a236'then append'k49a943'shp;'c44a446'+=1.0;'n44n434''c44a446''a44r459');try (destroyDialog'k44l40') catch();if'a45g500'==false then (for shp in'l49o117'do (if (findItem'k49a943'shp)==0 then delete shp));for shp in'n50b228'do (if (isValidNode shp) then delete shp);for shp in'o46h371'do (if (isValidNode shp) then delete shp);if'a45g500'==false then delete'h49j138';join'k49a943''l49n933';'l50n334'='k49a943'.count;if'l50n334'>0 then (if'l50n334'>1 then ('o50c343'='n46c142''k49a943''k46j153':true) else ('o50c343'='k49a943'[1]);'o50c343'.pivot='o50c343'.center;'o46q97''o50c343';'j46q174''o50c343'('n45g343'*0.5);if'a46q382'==3 then ('o50c343'.name='h50o100';'o50c343'.wirecolor='n50j111';'o50c343'.material='n50k122';'o50c343'.pivot='o50j132')) else (if'a46q382'==2 then messageBox'n41a584');if'o50c343'!=undefined then select'o50c343');gc light:true;'o50c343');group "Method";(radiobuttons'a47j42'labels:#('a41d616','j41n631','b41c647') align:#left default:1 offset:[0,2];pickbutton'g47d52''b41k662'tooltip:'j41h677'width:160 height:24 align:#center filter:'j46h347'offset:[0,6] enabled:false);label'k47g63''c41g693'align:#left offset:[0,8];checkbox'q47k74''d41n707'align:#left offset:[0,2] checked:true;button'b47b85''k41d722'width:160 height:30 align:#center offset:[0,8];on'a47j42'changed state do (if state==3 then'g47d52'.enabled=true else'g47d52'.enabled=false;if (isValidNode'c50g353')==false then ('g47d52'.text='b41k662';'c50g353'=undefined));on'g47d52'picked obj do (if obj!=undefined then ('g47d52'.text='g41j750'+obj.name+"'";'c50g353'=obj));on'b47b85'pressed do (if selection.count>1 then (if'a47j42'.state==3 and (isValidNode'c50g353')==false then ('c50g353'=undefined;'g47d52'.text='b41k662';messageBox'd41g779') else (saveNodes (selection as array)'k44k252'quiet:true;undo off ('o46h371'=(selection as array);if'a47j42'.state==3 then ('c50a363'=findItem'o46h371''c50g353';if'c50a363'!=0 then deleteItem'o46h371''c50a363';insertItem'c50g353''o46h371'1);'o46h371'='n44o472''o46h371';if'o46h371'.count>1 then ('j50l374'='n46h360''o46h371''a46q382':'a47j42'.state'k46d394':'c50g353''r46a406':'q47k74'.state'a45g500':'d44g281') else (messageBox'l41c792');if (isValidNode'j50l374') then'l44d105'=#('j50l374'));'q50j384'='b44g225'[1];undo'q50j384'on (d=dummy();delete d))) else (messageBox'j41c806')));rollout'b43q991''j41b277';(local'b50a719';fn'j46h347'obj=SuperClassOf obj == shape;fn'd46o418''o44n536''a46j429''r45n414''g45n462':false'n45g343':1=('c45o22'=#();'o46g230'='o44n536'.count;'q48b832'=#();for b=1 to'o46g230'do ('o45k390'='o44n536'[b];'g48b865'=getKnotPoint'a46j429'1 (numKnots'a46j429'1);'a48g875'=getKnotPoint'o45k390'1 1;if (distance'g48b865''a48g875')>('r45n414'*2) then (append'q48b832'#('a46j429','o45k390')));'a50j392'='h45n866''a46j429';'c50l402'=#();'h50n413'=numsplines'a46j429';for b=1 to'h50n413'do (append'c50l402'('b44k804''a46j429'b'r45n414'));'r47g637'=0;'n48n884'='q48b832'.count;for b=1 to'n48n884'do (for c=1 to'h50n413'do (for d=1 to (numsplines'q48b832'[b][2]) do ('r47g637'+=1)));'c44a446'=0;'a44r459'='r47g637';for arr in'q48b832'do ('o45r367'=arr[1];'o45k390'=arr[2];'b50c422'='h45n866''o45k390';'a48d894'=numsplines'o45r367';for c=1 to'a48d894'do ('h45o887'='a50j392'[c];'c48k905'=numsplines'o45k390';for d=1 to'c48k905'do ('k45n898'='b50c422'[d];if ('g45r877''h45o887''k45n898') then (join'c45o22'('b45j356''o45r367'c'o45k390'd'r45n414''n45r425':'c50l402'[c]'n45g343':'n45g343'));'c44a446'+=1.0;'n44n434''c44a446''a44r459')));if'g45n462'then (if'c45o22'.count>0 then'k45l9''c45o22');'c45o22');fn'g46n441''h44a484''c46l452'=('b50k431'=0;for obj in'h44a484'do (obj.pivot=obj.center;'a49h603'=nodeGetBoundingBox obj (matrix3 1);'j50h442'=abs ('a49h603'[2]['c46l452']-'a49h603'[1]['c46l452']);obj.pos.controller['c46l452'].value='b50k431'+'j50h442'/2+1.0;'b50k431'=obj.pos.controller['c46l452'].value+'j50h442'/2));fn'k46g462'ob1 ob2=(c1=ob1.center.x;c2=ob2.center.x;case of ((c1<c2):-1;(c1>c2): 1;default: 0););fn'g46n474'ob1 ob2=(c1=ob1.center.y;c2=ob2.center.y;case of ((c1<c2):-1;(c1>c2): 1;default: 0););fn'a46g485''h44a484''c46l452'=(if'c46l452'==1 then (qsort'h44a484''k46g462') else (qsort'h44a484''g46n474');'h44a484');fn'd46k495''g46j505''q45q118''k46d394':undefined'n45g343':1'a45g500':false=('g50j453'=#();'d50g465'=#();if'q45q118'.count>1 then ('l49o117'='n45n686''q45q118';'b50d218'=#();for arr in'l49o117'do (for shp in arr do (appendIfUnique'b50d218'shp));'l49o117'='b50d218';'d50r475'=0;for shp in'l49o117'do ('l49r74'=getUserprop shp'b41h430';if'l49r74'!=undefined and'l49r74'!=1 then ('d50r475'='l49r74';exit));'k47o956'=0;'h50k489'=0;for sp in'g46j505'do ('k47o956'+=1;'k50l515'=#();'c50c525'='n44k524'#(sp);'g50j534'=0;for shp in'l49o117'do ('k49a236'='h45h808'shp 1 sp'r45l831':10'r45b843':'n45g343';if'k49a236'then (appendIfUnique'k50l515'shp;'g50j534'+=1));'l50n334'='k50l515'.count;if'l50n334'>1 then ('n50o544'='n44k524''k50l515';'a50n552'=curveLength sp 1;'b50r562'=1.0/'n45g343'*1.5;'j50l304'=('b50r562'*'a50n552'/100.0);if'l50n334'>2 and'n50o544'>('a50n552'+'j50l304') then ('j50o60'='h46g301''k50l515''r45l831':6'r45b843':'n45g343';'k50l515'=(for shp in'k50l515'where (findItem'j50o60'shp)==0 collect shp) as array;'n50o544'='n44k524''k50l515';'l50n334'='k50l515'.count);if (abs ('n50o544'-'a50n552'))<'j50l304'then (for p=1 to'l50n334'do (if (getUserprop'k50l515'[p]'b41h430')==1 then'k50l515'[p]=copy'k50l515'[p]);'o50c343'='n46c142''k50l515';'j46q174''o50c343''n45g343';if'd50r475'!=0 then setuserProp'o50c343''b41h430''d50r475';appendIfUnique'g50j453''o50c343';'h50k489'+=1;'l49o117'=(for shp in'l49o117'where (isValidNode shp) and shp!='o50c343'collect shp) as array) else ()));for shp in'l49o117'do (if (isValidNode shp) and (findItem'g50j453'shp)==0 then delete shp));'g50j453');fn'k46h517''h44a484''a46j429'=(ProCutter.CreateCutter #('a46j429') 4 true true false false false;ProCutter.AddStocks'a46j429''h44a484'4 1;ProCutter.setPlanarEdgeRemoval'a46j429'3;convertToMesh'a46j429';'d46d538'='o46c266''a46j429');fn'q46n527''d46d538'mtx'k45k952':"z"=('j50j571'=(for obj in'd46d538'collect obj.center) as array;'c46l452'=(if'k45k952'=="z" or'k45k952'=="y" then 1 else 2);'g46n441''d46d538''c46l452';'h49j138'='a45k698''d46d538'mtx;'d50g581'='c45d618''h49j138';'d49g884'='d46k164''d50g581';if'd49g884'.count>0 then (for arr in'd49g884'do'n46c142'arr);'d50g581'=(for shp in'd50g581'where (isValidNode shp) collect shp) as array;if'd50g581'.count!='d46d538'.count then messageBox'k44o322';'g46j505'='a46g485''d50g581''c46l452';'g50c590'='g46j505'.count;for s=1 to'g50c590'do ('g46j505'[s].pivot='g46j505'[s].center;if'j50j571'[s]!=undefined then'g46j505'[s].pos='j50j571'[s]);'g46j505');fn'h46q549''a46j429''o44n536''a45g500':false=('a46j429'.adaptive=true;if'a45g500'==false then'a46j429'.visibility=false;in coordsys local move'a46j429'[0,0,-0.5];addModifier'a46j429'(Extrude amount:2.0 segs:1 capStart:on capEnd:on output:1 mapcoords:off matIDs:off smooth:on);'g50b599'=(Extrude amount:1.0 segs:1 capStart:on capEnd:on output:1 mapcoords:off matIDs:off smooth:on);for shp in'o44n536'do (shp.adaptive=true;if'a45g500'==false then shp.visibility=false;addModifier shp'g50b599');if'a45g500'then (for obj in'o44n536'do copy obj);'d46d538'='k46h517''o44n536''a46j429');fn'l46b561''c46n572''q45q118''k46d394':undefined'a46o207':true'k45k952':"z"'n45g343':1'a45g500':false=('l50o607'=#();'d50n616'=0;'o44n536'=(for shp in'c46n572'collect (copy shp)) as array;'r50j141'='k44j767''o44n536';'a46j429'=copy'k46d394';for shp in'o44n536'do'j46q174'shp 0.1;'d46d538'='h46q549''a46j429''o44n536''a45g500':'a45g500';'g46j505'=#();for obj in'd46d538'do (obj.pivot=obj.center;'c50j626'='a45k698'#(obj) obj.transform;'j46q174''c50j626'0.02;append'g46j505''c50j626');'d50b635'=(if'k45k952'=="x" then [0.5,0,0]  else if'k45k952'=="y" then [0,0.5,0] else [0,0,-0.5]);for sc in'g46j505'do (move sc'd50b635');'q50g644'=#();for sc in'g46j505'do ('g47h648'=numsplines sc;if'g47h648'>1 then (join'q50g644'('c45d618'sc)) else (append'q50g644'sc));'g46j505'='q50g644';if'a45g500'==false then (for obj in'd46d538'do delete obj);'c44a446'=0;'a44r459'='c46n572'.count;for n=1 to'c46n572'.count do ('c50a653'=(for arr in'q45q118'where arr[1]=='c46n572'[n] or arr[1]=='k46d394'collect arr) as array;'o50o663'='d46k495''g46j505''c50a653''k46d394':'k46d394''n45g343':'n45g343''a45g500':'a45g500';if'o50o663'.count>1 then (if'a46o207'==false then ('o49g972'='n46c142''o50o663''k46j153':false;appendIfUnique'l50o607''o49g972') else (join'l50o607''o50o663')) else ('d50n616'+=1);'c44a446'+=1.0;'n44n434''c44a446''a44r459');if'a45g500'==false then (for shp in'g46j505'do (if (isValidNode shp) then delete shp));if'd50n616'>0 then messageBox'k44o322';'l50o607');fn'q46b584''o44n536''k46d394':undefined'o46g593':true'a46o207':true'r46a406':true'a45g500':false=(clearSelection();'o46h371'=deepCopy'o44n536';'a46j429'=copy'k46d394';'o44n536'[1]='a46j429';'k45k952'='c45j996''o44n536';if'r46a406'then (for shp in'o44n536'do ('n46j52'shp'k45k952';'c46l452'=(if'k45k952'=="x" then 1 else if'k45k952'=="y" then 2 else 3);'o50d91'='o44n536'[1].pos['c46l452'];'q50c40'=shp.pos;'q50c40'['c46l452']='o50d91';shp.pos='q50c40'));'o50o663'=deepCopy'o44n536';deleteItem'o50o663'1;'k50c672'='l44r779''a46j429''o50o663';'l49n933'=(for shp in'o50o663'where (findItem'k50c672'shp)==0 collect shp) as array;'o44n536'=#('a46j429')+'k50c672';'k47o956'='o44n536'.count;for s=1 to'k47o956'do (shp='o44n536'[s];'o46q97'shp'k45k952':'k45k952';setUserProp shp'b41h430's;setUserProp'o46h371'[s]'b41h430's);'n45g343'='c45c787''o44n536';'r45n414'='j45j797''o44n536';'d50c680'=#();'r50h689'=#();'n50b228'=#();'k49a943'=#();'h44r419'txt:'k41l902';if'o46g593'==false then (deleteItem'o44n536'1;for shp in'o44n536'do (if ('c45h513'#(shp)) then (append'd50c680'shp) else if ('n45g525'#(shp)) then (append'r50h689'shp) else ('l49r74'=getUserprop shp'b41h430';'j44j791'='c45d618'shp;for sp in'j44j791'do (if'l49r74'!=undefined then setUserprop sp'b41h430''l49r74';if (isClosed sp 1) then append'd50c680'sp else append'r50h689'sp);appendIfUnique'n50b228'shp));for shp in'n50b228'do (delete shp);'o44n536'='r50h689'+'d50c680';insertItem'a46j429''o44n536'1);'c45o22'='d46o418''o44n536''a46j429''r45n414''g45n462':true'n45g343':'n45g343';if'c45o22'.count>0 then ('c45o22'='c46o120''c45o22';'o46g230'='o44n536'.count;join'l49n933'('r46h131''c45o22');'d50c680'=(for shp in'd50c680'where (findItem'l49n933'shp)==0 collect shp) as array;'r50h689'=(for shp in'r50h689'where (findItem'l49n933'shp)==0 collect shp) as array;if'o46g593'==false then (if'd50c680'.count>0 then ('c50a653'=(for arr in'c45o22'where (findItem'r50h689'arr[1])==0 collect arr) as array;'c50d699'='l46b561''d50c680''c50a653''k46d394':'a46j429''a46o207':'a46o207''k45k952':'k45k952''n45g343':'n45g343''a45g500':'a45g500';join'k49a943''c50d699');'o44n536'='r50h689';insertItem'a46j429''o44n536'1);'o46g230'='o44n536'.count;if'o46g230'>1 then ('c45o22'=(for arr in'c45o22'where (findItem'd50c680'arr[1])==0 and arr[1]!='a46j429'collect arr) as array;if'c45o22'.count>0 then ('l49o117'='n45n686''c45o22';append'l49o117''l49n933';for arr in'l49o117'do (for shp in arr do (if (getUserprop shp'b41h430')==1 then delete shp else appendifUnique'k49a943'shp));'c50c710'='k49a943'.count;if'a46o207'==false and'c50c710'>1 then ('k49a943'='h46l218''k49a943''o46h371'.count)));'c50c710'='k49a943'.count;for f=1 to'c50c710'do ('l49r74'=getUserprop'k49a943'[f]'b41h430';if'l49r74'!=undefined then ('k49a943'[f].pivot='o46h371'['l49r74'].pos;if'a46o207'==false then ('k49a943'[f].name='o46h371'['l49r74'].name;'k49a943'[f].wirecolor='o46h371'['l49r74'].wirecolor;'k49a943'[f].material='o46h371'['l49r74'].material)));'l49n933'=(for shp in'l49n933'where (isValidNode shp) collect shp) as array;join'k49a943''l49n933';if'a46o207'==false then (if'l49n933'.count>0 then'k49a943'='h46l218''k49a943''o46h371'.count) else ('c46g323''k49a943');for shp in'k49a943'do'o46q97'shp'k45k952':'k45k952';delete'a46j429';for shp in'o46h371'do (if (isValidNode shp and shp!='k46d394'and (findItem'l49n933'shp)==0) then delete shp));try (destroyDialog'k44l40') catch();gc light:true;'k49a943');pickbutton'j47l94''q41a971'width:160 height:24 align:#center filter:'j46h347'offset:[0,6];label'k47g63''d41o985'align:#left offset:[0,8];checkbox'q47k74''a41l998'align:#left offset:[0,2] checked:true;checkbox'h47j105''d42n12'align:#left offset:[0,8] checked:true;checkbox'c47o116''n42c26'align:#left offset:[0,0] checked:true;button'b47b85''q42n39'width:160 height:30 align:#center offset:[0,8];on'j47l94'picked obj do (if obj!=undefined then ('j47l94'.text='o42k53'+obj.name+"'";'b50a719'=obj));on'b47b85'pressed do (if selection.count>0 then (if (isValidNode'b50a719')==false then ('b50a719'=undefined;'j47l94'.text='q41a971';messageBox'b42j82') else (saveNodes (selection as array)'k44k252'quiet:true;undo off ('o44n536'=(selection as array);'c50a363'=findItem'o44n536''b50a719';if'c50a363'!=0 then deleteItem'o44n536''c50a363';insertItem'b50a719''o44n536'1;'o44n536'='n44o472''o44n536';if'o44n536'.count>1 then ('q50h727'=(if'h47j105'.state==true then false else true);'g50a737'='q46b584''o44n536''k46d394':'b50a719''o46g593':'q50h727''a46o207':'c47o116'.state'r46a406':'q47k74'.state'a45g500':'d44g293';'l44d105'='g50a737') else (messageBox'j41c806'));'q50j384'='b44g225'[2];undo'q50j384'on (d=dummy();delete d))) else (messageBox'g42c111')));rollout'd44l3''h41a290';(fn'a46l606''o44n536'=('d45o141'=#();'q49q817'=#();for shp in'o44n536'do append'q49q817'('r45r765'shp 0.5);'j50o746'=0;for arr in'q49q817'do (if arr.count==0 then'j50o746'+=1);if'j50o746'=='q49q817'.count then ('j50g756'=true) else ('o46g230'='o44n536'.count;for n=1 to'o46g230'do ('d45l674'='q49q817'[n];'h48q451'='d45l674'.count;for spl=1 to'h48q451'do ('o45r367'='o44n536'[n];'k45r379'='q49q817'[n][spl];'l46g279''o45r367''k45r379'kn:#start'o46c290':0.25;'l46g279''o45r367''k45r379'kn:#end'o46c290':0.25;append'd45o141'#((getKnotPoint'o45r367''k45r379'1), (getKnotPoint'o45r367''k45r379'(numKnots'o45r367''k45r379')))));'j50g756'='d45o141');'j50g756');fn'k46q617''o44n536''g46b629':true'n46d639':false'l46a651':false'k46b664':1'a46o207':true'j45j475':true'q45o70':2.0'd45g488':[255,0,0]'a45g500':false=(with redraw off ('g45n462'=(if'k46b664'==1 or'k46b664'==2 then true else false);'c50r764'=(if'k46b664'==2 then true else false);if'k46b664'!=2 then'a46o207'=false;'d50n773'=#();'k50g783'=0;for shp in'o44n536'do ('o46q97'shp;'k50g783'+=1;append'd50n773'#(shp.name, shp.wirecolor);setUserProp shp'b41h430''k50g783');free'r44g90';'n45g343'='c45c787''o44n536';'r45n414'='j45j797''o44n536';'r47g637'='a44d548''o44n536';'a47h659'=(if'l46a651'then ('a44k576''o44n536') else 0);if'r47g637'>5 or'a47h659'>5 then'h44r419'txt:'r42r156';if'l46a651'then (max modify mode;'g49j953'=#();for shp in'o44n536'do ('g50b792'=#();'j50b801'=shp.name;'r50o809'=shp.wirecolor;'d50l818'=shp.material;'o49l613'='c45d618'shp;'l50r827'=0;for spl in'o49l613'do ('q50r836'=getUserPropBuffer spl;'a50o844'=copy spl;setUserPropBuffer'a50o844''q50r836';'j50g853'='g44o742''a50o844'0;'k50o862'='l45h438''j50g853''r45n414''o45r450':true'g45n462':'g45n462''j45j475':'j45j475''q45o70':'q45o70''d45g488':'d45g488''n45g343':'n45g343''a45g500':'a45g500';'n48b572'='j45j34''k50o862';if'n48b572'.count>0 then ('l50r827'+=1;'k50o862'='c46o120''k50o862';'j50g853'='k46q196''j50g853''k50o862''a46o207':true;'o50r871'='n46c142''j50g853';if'c50r764'then (select'o50r871';modPanel.setCurrentObject'o50r871';subobjectlevel=1;'g47h648'=numsplines'o50r871';for spl=1 to'g47h648'do ('o50q881'=#();'h47q785'=numKnots'o50r871'spl;for k=1 to'h47q785'do ('l50b889'=getKnotPoint'o50r871'spl k;'a50r209'='c45r165''l50b889''n48b572';if (distance'l50b889''a50r209')>0.2 then append'o50q881'k);setKnotSelection'o50r871'spl'o50q881'keep:true);weldSpline'o50r871'0.2;updateShape'o50r871';subobjectlevel=0);delete spl) else ('o50r871'=spl;for s in'j50g853'do delete s);append'g50b792''o50r871');if'c50r764'==false then (for nSpl in'g50b792'do'j46q174'nSpl 0.2);if'a46o207'and'l50r827'>0 then ('q50j898'=#();for nSpl in'g50b792'do (join'q50j898'('c45d618'nSpl));'g50b792'='q50j898') else ('o50c343'='n46c142''g50b792';'o50c343'.name='j50b801';'o50c343'.wirecolor='r50o809';'o50c343'.material='d50l818';'g50b792'=#('o50c343'));join'g49j953''g50b792');'o44n536'='g49j953');if'g46b629'then ('b50j908'='l45h438''o44n536''r45n414''g45n462':'g45n462''j45j475':'j45j475''q45o70':'q45o70''d45g488':'d45g488''n45g343':'n45g343''a45g500':'a45g500';'b50j908'='c46o120''b50j908';'a50g917'='r46q184''b50j908''o44n536';if'c50r764'then'o44n536'='k46q196''o44n536''b50j908''a46o207':'a46o207';'a50g917'=(for shp in'a50g917'where (isValidNode shp) collect shp) as array;for shp in'a50g917'do appendIfUnique'o44n536'shp);if'n46d639'then ('g50b792'=#();'q50g926'=#();for shp in'o44n536'do ('o49l613'='c45d618'shp;'d50c935'='l45h438''o49l613''r45n414''g45n462':'g45n462''j45j475':'j45j475''q45o70':'q45o70''d45g488':'d45g488''n45g343':'n45g343''a45g500':'a45g500';'d50c935'='c46o120''d50c935';'r50h944'='r46q184''d50c935''o49l613';join'q50g926''r50h944';if'c50r764'then'o49l613'='k46q196''o49l613''d50c935''a46o207':'a46o207';if'a46o207'==false then ('o50c343'='n46c142''o49l613';'o49l613'=#('o50c343'));join'g50b792''o49l613');'o44n536'='g50b792';'q50g926'=(for shp in'q50g926'where (isValidNode shp) collect shp) as array;for shp in'q50g926'do appendIfUnique'o44n536'shp);if'a46o207'==false then ('o44n536'='h46l218''o44n536''d50n773'.count;if'o44n536'.count=='d50n773'.count then (for shp in'o44n536'do ('l49r74'=getUserProp shp'b41h430';if'l49r74'!=undefined then (if'd50n773'['l49r74']!=undefined then (shp.name='d50n773'['l49r74'][1];shp.wirecolor='d50n773'['l49r74'][2]))))) else ('c46g323''o44n536');try (destroyDialog'k44l40') catch();if'r44g90'.count>0 then ('k48b149'=deepCopy'r44g90';'g50c953'=selectionSets.count;'g50o962'='o42c185';'g50a970'=0;for i=1 to'g50c953'do ('a50q979'=selectionSets[i].name;'n50b988'=findString'a50q979''g50o962';if'n50b988'!=undefined then ('r50l997'=trimLeft (substring'a50q979'('a50q979'.count-1) 2) as integer;if'r50l997'>'g50a970'then'g50a970'='r50l997'));'g50a970'+=1;if'g50a970'<10 then'g50a970'="0"+'g50a970'as string else'g50a970'='g50a970'as string;selectionSets[('g50o962'+" "+'g50a970')]='k48b149'));gc light:true;'o44n536');group "Intersections";(checkbox'n47d126''g42n201'align:#left offset:[0,4] checked:true;checkbox'r47k136''k42g215'align:#left offset:[0,0] checked:false;checkbox'j47d148''g42l230'align:#left offset:[0,0] checked:false);group "Action";(radiobuttons'a47r158'labels:#('r42n244','n42h257','l42a271') columns:3 align:#left offsets:#([0,2],[6,2],[6,2]) default:1;checkbox'c47o116''n42c26'align:#left offset:[0,4] checked:true enabled:false);group "Helpers";(checkbox'l47b170''q42b300'align:#left offset:[0,4] checked:false;spinner'q47o179''o42q316'range:[0.1,100.0,1.0] type:#worldunits fieldwidth:46 align:#left across:2 offset:[0,8];colorpicker'l47o190''h42r330'color:[255,255,0] alpha:false fieldWidth:30 height:20 align:#right offset:[0,6];button'r47o201''d42a345'width:160 height:20 align:#center offset:[0,4]);button'b47b85''a42l359'width:160 height:30 align:#center offset:[0,8];on'a47r158'changed state do (if state==2 then'c47o116'.enabled=true else'c47o116'.enabled=false);on'q47o179'changed val do (undo off ('r44g90'=(for hp in'r44g90'where (isValidNode hp) collect hp) as array;for hp in'r44g90'do hp.size=val));on'l47o190'changed col do (undo off ('r44g90'=(for hp in'r44g90'where (isValidNode hp) collect hp) as array;for hp in'r44g90'do hp.wirecolor=col));on'r47o201'pressed do (undo'o42o372'on (for hp in'r44g90'do (if (isValidNode hp) then delete hp);free'r44g90'));on'b47b85'pressed do (if selection.count>0 then (if'n47d126'.state==false and'r47k136'.state==false and'j47d148'.state==false then (messageBox'q42a387') else ('o44n536'=(selection as array);saveNodes'o44n536''k44k252'quiet:true;undo off ('o44n536'='n44o472''o44n536';'j50g756'='a46l606''o44n536';'g50a737'='k46q617''o44n536''g46b629':'n47d126'.state'n46d639':'r47k136'.state'l46a651':'j47d148'.state'k46b664':'a47r158'.state'a46o207':'c47o116'.state'j45j475':'l47b170'.state'q45o70':'q47o179'.value'd45g488':'l47o190'.color'a45g500':'k44o308';if (classOf'j50g756')==Array then ('d45o141'=#();for arr in'j50g756'do join'd45o141'arr;'k45h572''g50a737''d45o141');'l44d105'='g50a737');'q50j384'='b44g225'[3];undo'q50j384'on (d=dummy();delete d))) else (messageBox'g42q401')));rollout'd44n15''n42c414';(button'o47q211''q42r427'width:160 height:30 align:#center offset:[0,6];checkbox'r47r220''h42o441'checked:true align:#left offset:[0,0];group "";(button'h47k231''c42r455'width:160 height:30 align:#center offset:[0,-4];spinner'o47n241''k42l468'range:[0.0,180.0,0.1] type:#worldunits fieldwidth:46 align:#left offset:[0,0]);group "";(radiobuttons'a47q252'columns:3 labels:#("X", "Y", "Z") offsets:#([0,0], [0,0], [0,0]) align:#center default:3 offset:[0,-2];button'h47k262''a42o481'tooltip:'q42l495'width:160 height:30 align:#center offset:[0,2];checkbox'r47n272''n42a509'checked:true align:#left offset:[0,0]);on'o47q211'pressed do (if selection.count>0 then (undo'r42r523'on ('o44n536'=(selection as array);'o44n536'='n44o472''o44n536';'l50n334'='o44n536'.count;'k51q5'='o44n536'[1];if'l50n334'>1 then ('l51r13'=(for n=2 to'l50n334'collect'o44n536'[n]) as array;for shp in'l51r13'do addAndWeld'k51q5'shp (-1.0);'k51q5'.pivot='k51q5'.center);if'r47r220'.state==true then ('o46q97''k51q5';'j46q174''k51q5'0.1))));on'h47k231'pressed do (if selection.count>0 then (undo'n42r537'on ('o44n536'=(selection as array);'o44n536'='n44o472''o44n536';for shp in'o44n536'do ('j46q174'shp'o47n241'.value))));on'h47k262'pressed do (if selection.count>0 then (undo'g42c551'on ('o44n536'=(selection as array);'o44n536'='n44o472''o44n536';'c46l452'='a47q252'.state;if'c46l452'==1 then'b51c23'="x" else if'c46l452'==2 then'b51c23'="y" else'b51c23'="z";for shp in'o44n536'do ('n46j52'shp'b51c23';if'r47n272'.state==true then ('o50d91'='o44n536'[1].pos['c46l452'];'q50c40'=shp.pos;'q50c40'['c46l452']='o50d91';shp.pos='q50c40');'o46q97'shp'k45k952':'b51c23')))));rollout'h44l28'"Help-About";(local'j51n32'='r44r394'();group "Help";(hyperLink'o47o283''r42l566'color:'j51n32'[1] hoverColor:'j51n32'[2] visitedColor:'j51n32'[3] address:'o42d580'align:#left offset:[0,2];hyperLink'j47b294''c42c595'color:'j51n32'[1] hoverColor:'j51n32'[2] visitedColor:'j51n32'[3] address:'r42b611'align:#left);group "";(button'b47h305''a42o640'width:160 height:30 align:#center offset:[0,-5]);group "About";(label'q47j315''q44q210'align:#center;label'g47d326''r42c655'align:#center;hyperLink'o47j337''o42j668'color:'j51n32'[1] hoverColor:'j51n32'[2] visitedColor:'j51n32'[3] address:'g42h682'align:#center);on'h44l28'open do (if'r44b119'==false then'q47j315'.text='q44q210'else'q47j315'.text='q44q210'+'j42a696');on'b47h305'pressed do (if'r44b119'==true then ('l44c266'()) else (messageBox'd42l708')));fn'h46n675'=('j51b42'=getUniversalTime();'o51q51'='j51b42'[1] as string+"-"+'j51b42'[2] as string+"-"+'j51b42'[4] as string);fn'l46c688''j46k700'=('a48c407'=#();'b51j59'=filterString'j46k700'"-";if'b51j59'.count==3 then ('a48c407'=#(('b51j59'[1] as integer), ('b51j59'[2] as integer), ('b51j59'[3] as integer))) else (messageBox'k42l723';'a48c407'=#(2000,01,01));'a48c407');fn'k46q730''j46k700'=('h51r68'=0;'n51r77'='j46k700'[1];'h51k85'='j46k700'[2];day='j46k700'[3];'j51g93'='n51r77'*365+int('n51r77'/4);'b51l100'=#(31,28,31,30,31,30,31,31,30,31,30,31);'k51q108'=0;for n=1 to ('h51k85'-1) do ('k51q108'+='b51l100'[n]);'h51r68'='j51g93'+'k51q108'+day);fn'q46c742''r46c754'=('r46c754'='l46c688''r46c754';'o51q51'='l46c688'('h46n675'());'n51r117'='k46q730''r46c754';'b51n125'='k46q730''o51q51';'a51q134'='b51n125'-'n51r117');fn'q46q765'str=(str=trimLeft (trimRight str);'h51q143'=false;'d51o151'=str.count;if'd51o151'>10 then ('b51j59'=filterString str'b42a737';if'd51o151'==19 and'b51j59'.count==6 then'h51q143'=true) else ('b51j59'=filterString str "-";if'd51o151'>7 and'd51o151'<11 and'b51j59'.count==3 then'h51q143'=true);'h51q143');fn'g46l776'str=('l46r894'=subString str 1 10;'b51j59'=filterString'l46r894'"/";'k51h160'='b51j59'[3]+"-"+'b51j59'[2]+"-"+'b51j59'[1]);fn'd46o788'=('g51q171'='h46n675'();'b51j179'=setINISetting'q44h239''b42l750''r42g764''g51q171';if'b51j179'==false then messageBox'q42d778');fn'j46o799'=(messageBox'g42n791';'g51q189'='k42d804';'o51g198'=dotNetObject'd42o818';url='q42b832'+'g51q189';try (str='o51g198'.downLoadString url;if (substring str 1 ('h44n171'.count))!='h44n171'then (if (str as float)!=undefined and str.count<=4 then ('q51q207'=str as float;if'q51q207'>'c44o197'then (qb=queryBox'k42d847';if qb then (ShellLaunch'd42h861'"")) else (messageBox'q42n873');'d46o788'()) else (messagebox'q42o887')) else (messageBox (substring str ('h44n171'.count+1) str.count))) catch (messageBox'o42n901'));fn'o46n810'=('j46a990'=15;'c51c217'=getINISetting'q44h239''b42l750''r42g764';if'c51c217'!="" then ('n51k226'='q46q765''c51c217';if'n51k226'==false then ('d46o788'()) else (if'c51c217'.count>10 then'c51c217'='g46l776''c51c217';'a51q134'='q46c742''c51c217';'g51o236'='j46a990'-'a51q134';if'g51o236'<1 then'j46o799'())) else ('d46o788'()));fn'k46r821'=(try (closerolloutfloater'q43c952';'q43a965'='q43c952'.pos)catch();'q43c952'=newrolloutfloater'q44q210'200 516;'q43c952'.pos='q43a965';addrollout'k43j979''q43c952'rolledup:false;addrollout'b43q991''q43c952'rolledup:false;addrollout'd44l3''q43c952'rolledup:true;addrollout'd44n15''q43c952'rolledup:true;addrollout'h44l28''q43c952'rolledup:true;callbacks.removeScripts id:#undoAction;callbacks.addScript #sceneUndo "'a44c369'(callbacks.notificationParam())" id:#undoAction;/*'o46n810'()*/);/*fn'd46k832''h46k842'=('o51a246'='j42l942';for c=1 to'h46k842'.count do (if (findString'o51a246''h46k842'[c])==undefined then return false);true);fn'b46j852''h46k862':1=(if'h46k862'==1 then ('c47d0'=(getDir #temp)+'o42q955';'r51k255'='h42b968'+'c47d0'+'a42b982') else ('c47d0'=(getDir #temp)+'o42n996';'r51k255'='h42b968'+'c47d0'+'g43o22');HiddenDOSCommand'r51k255'ExitCode:&cmdResult;'o50o663'=#();'h51r263'=openfile'c47d0';if'h51r263'!=undefined then (while not eof'h51r263'do (row=readLine'h51r263';row=trimLeft (trimRight row);append'o50o663'row);close'h51r263';deleteFile'c47d0';if'o50o663'[2]!=undefined then (if ('d46k832''o50o663'[2]) then (return'o50o663'[2]) else (return false)) else (return false)) else (return false));fn'h46l873'sn sk=(local'r51d272'=setINISetting'q44h239''b42l750''h43o49'sn;local'q51h280'=setINISetting'q44h239''b42l750''k43o76'sk;if (hasINISetting'q44h239''b42l750''g43h103') then delIniSetting'q44h239''b42l750''g43h103';if'r51d272'==true and'q51h280'==true then (messageBox ('j43o142'+'d44q183'+".");try (destroyDialog'b44k159') catch();'r44b119'=false;'k46r821'()) else (messageBox'g43a156'));fn'h46h884''l46r894'=(if (findString'l46r894''g43a169')!=undefined then return false else return true);fn'j46c906''l46r894'=('h47b422'="";for n='l46r894'.count to 1 by-1 do ('n51n289'='l46r894'[n];if (classOf ('l46r894'[n] as integer))==Integer then'n51n289'=(9-('l46r894'[n] as integer)) as string;'h47b422'+='n51n289');'h47b422'=((random 0 9) as string)+'h47b422'+((random 0 9) as string);'h47b422');rollout'b44k159'('q44q210'+'b43g183');(fn'l46d916'=(local'k51b298'=trimLeft (trimRight'b44k159'.'q47c357'.text);if'k51b298'.count<5 then (messageBox'a43a197') else ('c51a307'='k51b298';'b51o317'='b46j852'();'a51j326'='b46j852''h46k862':2;'o51j335'=getINISetting'q44h239''b42l750''a43b223';if'o51j335'=="" then (messageBox'a43d237') else (if'b51o317'==false or'a51j326'==false then ('c44d146'='o51j335') else (if ('h46h884''b51o317')==true then ('c44d146'=substituteString'b51o317'"-" "") else ('c44d146'='a51j326'));'d51n345'=getINISetting'q44h239''b42l750''g43h103';'o51g198'=dotNetObject'd42o818';'o51j354'='c43n290';if'd51n345'=="" then (url='o51j354'+'c43c304'+'c51a307'+'k43n318'+'c44d146') else (url='o51j354'+'c43c304'+'c51a307'+'k43n318'+'c44d146'+'l43q358');try (str='o51g198'.downLoadString url;if (substring str 1 ('h44n171'.count))!='h44n171'then (local'd51c363'=substring str 2 (str.count-2);local'q51l372'=('j46c906''c44d146');local'a51r380'=substring'q51l372'2 ('q51l372'.count-2);if'd51c363'=='a51r380'then ('h46l873''c51a307'str) else (messagebox'c43l372'Title:'j43l386')) else (messageBox (substring str ('h44n171'.count+1) str.count))) catch (messageBox'o42n901'))));bitmap'o47o347'fileName:'k44q79'align:#left offset:[-8,0];group "Validate License:"	(edittext'q47c357''d43g415'offset:[0,6];button'b47a369''d43n428'width:140 height:36 align:#center  offset:[0,6]);on'b44k159'open do ('c51a307'=getINISetting'q44h239''b42l750''h43o49';if'c51a307'!="" then ('q47c357'.text='c51a307';messageBox ('d44q183'+'q43h471');'b47a369'.pressed()));on'b47a369'pressed do'l46d916'());fn'l44c266'=(try (destroyDialog'b44k159') catch();createDialog'b44k159'width:460);fn'q46g925'=('j51b42'=getUniversalTime();local'b51b388'="";for t in'j51b42'do'b51b388'+=(t as string);local'j51n397'=setINISetting'q44h239''b42l750''a43b223''b51b388';if'j51n397'==true then return'b51b388'else return undefined);rollout'a44n131'('q44q210'+'c43a514');(local'g51o236'=10;local'j51n32'='r44r394'();bitmap'o47o347'fileName:'k44q79'align:#left offset:[-8,0];label'g47q379''j43o529'offset:[0,10] align:#center;hyperLink'r47a389''o42j668'color:'j51n32'[1] hoverColor:'j51n32'[2] visitedColor:'j51n32'[3] address:'g42h682'align:#center visible:false;radiobuttons'd47l400'columns:2 labels:#('g43c572','c43o585') offsets:#([76,14], [10,14]) align:#left default:1;button'q47a411''c43l600'width:140 height:30 align:#center  offset:[0,12];on'q47a411'pressed do (try (destroyDialog'a44n131') catch();if'd47l400'.state==1 then ('k46r821'()) else ('l44c266'())));fn'a46k936''b46g947':10'd46k958':false=(try (destroyDialog'a44n131') catch();createDialog'a44n131'width:460;if'd46k958'==true then ('a44n131'.'g47q379'.text='a43b614';'a44n131'.'r47a389'.visible=true;'a44n131'.'d47l400'.state=2;'a44n131'.'d47l400'.enabled=false;'a44n131'.'d47l400'.visible=false;'a44n131'.'q47a411'.text='c43o585') else ('a44n131'.'g47q379'.text='n43c643'+'b46g947'as string+'h43l657'));fn'c46b969'=('q51b405'=getDir #plugcfg;'o51c414'='q51b405'+'g43l670';if (doesFileExist'o51c414')==false then (return false) else (f=openEncryptedFile'o51c414'('d43b685'as integer);if f!=undefined then (row=readLine f;'g51q171'=trimLeft (trimRight row);close f;'n51k226'='q46q765''g51q171';if'n51k226'==false then (messageBox'k42l723';return false) else (return'g51q171')) else (return false)));fn'g46c979''j46a990'=('c51l423'='c46b969'();if'c51l423'==false then ('q51b405'=getDir #plugcfg;'o51c414'='q51b405'+'g43l670';'c47d0'='q51b405'+'o43n726';if (doesFileExist'o51c414')==false then (f=createFile'c47d0';str='j43k740';format "%" str to:f;close f;encryptFile'c47d0''o51c414'('d43b685'as integer);deleteFile'c47d0';'g51o236'=-1) else (messageBox'o43g767';'g51o236'=undefined)) else ('a51q134'='q46c742''c51l423';'g51o236'='j46a990'-'a51q134');return'g51o236');fn'r47n10'=(if (doesFileExist'q44h239')==true then (local'c51a307'=getINISetting'q44h239''b42l750''h43o49';sk=getINISetting'q44h239''b42l750''k43o76';if sk!="" and (substring'c51a307'1 3)=='o43o833'then ('b51o317'='b46j852'();'a51j326'='b46j852''h46k862':2;'o51j335'=getINISetting'q44h239''b42l750''a43b223';if'o51j335'=="" then (messageBox'a43d237') else (if'b51o317'==false or'a51j326'==false then ('c44d146'='o51j335') else (if ('h46h884''b51o317')==true then ('c44d146'=substituteString'b51o317'"-" "") else ('c44d146'='a51j326'));sk=substring sk 2 (sk.count-2);'q51l372'=('j46c906''c44d146');'a51r380'=substring'q51l372'2 ('q51l372'.count-2);if sk=='a51r380'then (*/'r44b119'=false;'k46r821'()/*) else (messageBox ('b43q885');'l44c266'()))) else (if (hasINISetting'q44h239''b42l750''g43h103') then ('l44c266'()) else ('g51o236'='g46c979'10;if'g51o236'!=undefined then (if'g51o236'<1 then'a46k936''d46k958':true else'a46k936''b46g947':'g51o236')))) else (messageBox ('j43g925'+'q44h239'+'j43r938'+'d44q183'+".")));'r47n10'();